$scope.loadTabByUrl = function () {
if (!location.hash) {
return;
}
if (location.hash.split("#").length <= 1) {
return;
}
var tabId = location.hash.substring(location.hash.lastIndexOf("hash") + 1);
if (!tabId) {
return;
}
$("a[href='" + tabId + "']").tab("show");
}
But the rendered edit page doesn't show the after-render="loadTabByUrl", somehow look like that I edited the wrong template but I got it from ~/Umbraco/Views/content/edit.html, this is the one
Show tab based on location.hash value
Hi,
I have an url like: http://localhost:1188/umbraco#/content/content/edit/1074#tab19
I want with #tab19 to activate the third tab (mean to show the third tab).
I tried:
I edited page
edit.html
(I addedafter-render="loadTabByUrl"
)I add the following code to
umbraco.directives.js
And
umbraco.controllers.js
But the rendered edit page doesn't show the
after-render="loadTabByUrl"
, somehow look like that I edited the wrong template but I got it from~/Umbraco/Views/content/edit.html
, this is the oneHow to make it work ?
is working on a reply...