Featured post
html - content navigation help -
i'm working on content navigation in typoscript. these requirements should accomplished:
- show current node @ top -> done!
 - show child nodes of current page -> done!
 - if there no child nodes, show last treelevel with current page active - not done yet!
 
for last point, need help. tried [treelevel = 2] control navigation on last treelevel, nothing happened. don't know why treelevel-condition won't work me. problem is, last treelevel on 2nd level, on 3rd...
any ideas?
this typoscript far:
temp.leftcol = coa temp.leftcol {     5 = html    5.value = <ul class="contentnav">     ### show current page on top    10 = text    10.typolink {       parameter.data = tsfe:id    }     10 {       wrap = <li class="title">|</li>       data = leveltitle:2       if {          istrue.numrows {             table = pages          }       }    }     ### content navigation: show subpages    20 = hmenu    20.entrylevel = -1     20.1 = tmenu    20.1 {       noblur = 1       no = 1       cur = 1       expall = 1    }     20.1.no {       wrapitemandsub = <li>|</li>       stdwrap.wrap = |       allstdwrap.insertdata = 1    }      20.1.cur {       wrapitemandsub = <li class="on">|</li>       stdwrap.wrap = |       allstdwrap.insertdata = 1    }     20.1.wrap = |</ul> }      
what mean exactly?
if there no child nodes, show last treelevel with current page active - not done yet!
as understand it, either
1) letssay there 10 pages on level 1, , every 1 of pages except page 7 have 3 subpages each. , letssay page 7 has no subpages. then, when go page 7, display page 7 active, display subpages page 6 (the "show last treelevel") under it.
or
2) when user navigates page 7, displays page 7 active, , subpages whatever page user has been right before that? example, if navigate page 2 first, , go page 7, see page 7 active, , subpages page 2.
- Get link
 - X
 - Other Apps
 
Comments
Post a Comment