2
I revealed it.
To gain a tab-style menu, you should insert a "#" (hash) as a "Links to:" in tab settings. Then, provided Use persist =Yes and Use onmouseover = No in the MyTabs block settings, you can switch between tabs and the switched position is remembered.
When you click a tab, it expands and you can access any content of the tab, that you have set in the Tab Manager.
It doesn't matter whether "#" is the only content of the Link To: field or it is included in any longer string. Actually , the position of "#" in the string is checked - if is >=0, the tab is expanded.
The above is as described in the mytab/doc/readme.txt.
It lacks a small feature I need.
When I click a tab, I want not to expand the tab (to get a kind of "submenu"), but I want just to be redirected to another page, which will include the tabs and that tab will remain selected.
I did it in a quite simple way:
mytabs/jscript/tabcontents.js, function init, lines below 154
this.tabs[i].onclick=function(){
tabinstance.expandtab(this)
tabinstance.cancelautorun() //stop auto cycling of tabs (if running)
location.this.tabs[i].getAttribute("href") // added by kaper
return false
}
The onclick function just opens the URL after expanding the tab (and writing info about the selected one to cookie via the expandtab function).