Rating: 3.8 of 5. 5 vote(s).
Click the rating bar to rate this item.
tempJumpNav=HMENUtempJumpNav{special=directory # id of root page where the menu startsspecial.value=31=JSMENU1.target=_top1.firstLabelGeneral=quickjump to snip}
Hello, here's a more accurate version
temp.jumpto = HMENU
temp.jumpto {
1 = JSMENU
1 {
levels = 2
#1.target = _blank
1.additionalParams = class="select-level1"
2.additionalParams = class="select-level2"
firstLabelGeneral = sari la...
}
}
i added 2 levels here (levels = 2) which actually creates 2 select boxes, the second changes according to what you select in the first one. then i specified the css style for level 1 (1.additionalParams) and the stylesheet for the second level (2.additionalParams). use the target if you want pages to open in a new window.
By the way, changing styles is easy for any control, without using typoscript setup. For eg, just place your select box marker in a div, for eg: <div id="mydiv">###SELECT###</div> and then use this in the css: #mydiv option {} etc
You can still use the :
special = directory
special.value = 3
part if you want your menu to show only certain pages.
this is really nice, but do you know how to add a css class to the select box?
greets
nico
I have a HTML template and a DIV to map it to using TemplaVoila.
Thanks!
temp.jumpto = HMENU
temp.jumpto {
1 = JSMENU
1 {
levels = 2
#1.target = _blank
1.additionalParams = class="select-level1"
2.additionalParams = class="select-level2"
firstLabelGeneral = sari la...
}
}
i added 2 levels here (levels = 2) which actually creates 2 select boxes, the second changes according to what you select in the first one. then i specified the css style for level 1 (1.additionalParams) and the stylesheet for the second level (2.additionalParams). use the target if you want pages to open in a new window.
By the way, changing styles is easy for any control, without using typoscript setup. For eg, just place your select box marker in a div, for eg: <div id="mydiv">###SELECT###</div> and then use this in the css: #mydiv option {} etc
You can still use the :
special = directory
special.value = 3
part if you want your menu to show only certain pages.
cheers, radu
Thx,
Silviu
Add comment