[TYPO3-english] Parent's page title in sub navigation [resolved]

John Sullivan john at quaycreative.com
Mon Jun 8 00:21:17 CEST 2009


Thanks to Philipp and Erik.

Re Erik: it is exactly what I want to archive. However, with your 
suggestion in typoscript, I have made my own one.. The html code is 
slightly tidier as below:


page.10.subparts.SUBSIDENAV = HMENU
page.10.subparts.SUBSIDENAV.1 = TMENU
page.10.subparts.SUBSIDENAV.1.expAll = 1
page.10.subparts.SUBSIDENAV.1{
    entryLevel = 1
    stdWrap.dataWrap = <div id="sub-navigation"><h2>{leveltitle : 
0}</h2><ul>|</ul></div>
}
page.10.subparts.SUBSIDENAV.1.NO.linkWrap = <li>|</li>
page.10.subparts.SUBSIDENAV.1.ACT < .NO
page.10.subparts.SUBSIDENAV.1.ACT = 1
page.10.subparts.SUBSIDENAV.1.ACT.linkWrap = <li class="active">|</li>



Thanks again for all your helps :D






Erik Svendsen wrote:
> John Sullivan skrev:
>> Thanks to both Phil and Emmanuel. I tried both solutions but none of 
>> them work out for me case.. maybe it just because of my limited 
>> knowledge of typoscript therefore I really dont know how to put them 
>> together.
>>
> 
> Something like this?
> 
> temp.subMenu = COA
> temp.subMenu {
>     10 = HMENU
>     10 {
>         entryLevel = 1
>         stdWrap.dataWrap = <ul id="sub-nav"><li 
> class="section"><h2>{leveltitle : 1}</h2>
>     }
>     20 = HMENU
>     20.entryLevel = 1
>     20.wrap = <ul>|</ul></li></ul>
>     20.1 = TMENU
>     20.1.NO {
>         wrapItemAndSub = <li>|</li>
>         ATagParams =
>     }
>     20.1.ACT = 1
>     20.1.ACT {
>         wrapItemAndSub = <li>|</li>
>         ATagParams =
>     }
>     20.1.CUR = 1
>     20.1.CUR {
>         wrapItemAndSub = <li class="act">|</li>
>         ATagParams = class="act"
>     }
> 
>     20.2 = TMENU
>     20.2.wrap = <ul>|</ul>
>     20.2.NO {
>         wrapItemAndSub = <li>|</li>
>         ATagParams =
>     }
>     20.2.CUR = 1
>     20.2.CUR {
>         wrapItemAndSub = <li class="act">|</li>
>         ATagParams = class="act"
>     }
> }
> 
> Example on http://www.torsk.net/frisk-torsk.html
> 
> Best Erik


More information about the TYPO3-english mailing list