html5 - how can i get the id of a item or a menu in typoscript? -


i have 3 different menus in typoscript. if click 1 item of them, want menu shown on next page (template), showing 1 item or according element clicked.

i need this:

(lib.menu_right < lib.menu1) or (lib.menu_right < lib.menu2) or (lib.menu_right < lib.menu3)

but don`t know how current clicked page.

edited: menu1 structure is:

## menu 1 [begin] lib.menu1 = hmenu  lib.menu1.special = list lib.menu1.special.value = 6933, 6918, 6917, 6916, 6915   lib.menu1.1 = tmenu   lib.menu1 = hmenu lib.menu1.entrylevel = 0 lib.menu1.wrap = <ul class="lista_sin_estilo margen_top_medio tam_bloque1>|</ul> lib.menu1.1 = tmenu lib.menu1.1.no {   allwrap = <li class="lista_primero">| <hr class="linea_separadora"></li> }  lib.menu1.1.act = 1 lib.menu1.1.act {   allwrap = <li class="lista_primero">|<hr class="linea_separadora"></li> } ## menu 1 [end] 

you can conditions like

[globalvar = tsfe:id = 1] || [globalvar = tsfe:id = 2] # if current page has uid 1 or 2 lib.menu_right < lib.menu1 [global] [globalvar = tsfe:id = 3] || [globalvar = tsfe:id = 4] lib.menu_right < lib.menu2 [global] 

if know uid's of pages. if pages in menu organised in respective subpages, may rootline like

[pidupinrootline = 1] # if current page inside rootline of page uid 1 lib.menu_right < lib.menu1 [global] 

Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -