I know that I can call a specific portion on a page by adding a # after the page name [[page#anchor_name|shown_up_as]]. It doesn't seem that I can call a specific portion of a page that is within a header tab from another page via a switchtablink.
Topic on Extension talk:Header Tabs
No, you can't - it's not that smart, unfortunately.
Sergey,
What in your opinion is the hardest part?
- The API to define the URL, which should just be a modification to the switchtablink parser.
- The interpretation of the URL with two # symbols embedded.
index.php?title=MS:Tool_Registry#tab=Executive_Summaries#G2
I was looking through the extension to understand the code. Is there any hope that the functionality could be accomplished? I would be willing to spend a weekend to really understand the code and attempt a modification, but if you think that it is not worth it I won't waste my time.
Header Tabs is awesome, but I would love to keep the basic functionality of being able to jump to an anchor point on a page while that page is being shown in a header tab.
I second the desire for this if possible. Especially since it seems that switching tabs doesn't bring you back to the top of the page. This is a bit of an issue if you place a switch tab link anywhere far enough that the user has scrolled down some.
By the way, I used:
// Scrolls to the top when using switchtab parser with appropriate class since it doesn't natively
(function () {
function toTop() {window.scrollTo(0, 0);}
var TabSwitch = document.querySelectorAll(".tabLink");
var i;
for (i = 0; i < TabSwitch.length; i++)
{
TabSwitch[i].onclick = toTop;
}
})();
in my common.js file to make my switchtab parsers jump back up when clicked. Should work for anyone else also, though granted there's better ways to go about it (but I needed a script running anyways) :)
I just stumbled on this and I desperately would like to figure out how to Call an anchor on a Header Tab page. I also use Header Tabs further down on pages and when I link to the Tab it takes me to the top of the linked page. It doesnt link to the correct Tab but I cant see it unless I scroll down. Its probably frowned upon but I would literally pay to have this functionality in Header Tabs.