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

John Sullivan john at quaycreative.com
Sun Jun 7 20:45:49 CEST 2009


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.

Anyway, just to recap what I want is that I need the parent's page title 
as below

<div id="sub-navigation">
  <ul>
    <li class="parentTitle">Parent's title</li>
    <li> list 1 </li>
    <li> list 2 </li>
    <li> list 3 </li>
  </ul>
</div>

Hope that makes sense and thanks for your helps.


John




Emmanuel Pire wrote:
> Hi,
> You should just add :
> 
> page.10.subparts.SUBSIDENAV.1.insertData = 1
> 
> Should do it.
> 
> Regards,
> Emmanuel
> 
> On Sun, Jun 7, 2009 at 2:24 PM, Philipp Gampe <phil at philippgampe.info>wrote:
> 
>> Hi,
>>
>> I used this one to create a title for my subnavigation
>>
>>   sub_titel = HMENU
>>   sub_titel {
>>     special = rootline
>>     special.range = 2|2
>>       # 151, this page is hidden and not in main menu, but we still want
>> it to appear in title
>>     includeNotInMenu = 151
>>     1 = TMENU
>>     1 {
>>       NO = 1
>>       NO.ATagTitle.field= abstract // description // title
>>         # we want to have a header and not a link, so just print the text
>>       NO.doNotLinkIt = 1
>>     }
>>   }
>>
>> Hope it will help you
>>
>> Best regards
>> Phil
>>
>>
>> Am 07.06.2009, 13:20 Uhr, schrieb John Sullivan <john at quaycreative.com>:
>>
>>> Hi!
>>>
>>>
>>>
>>> I'd like to have the parent's page title displays above the
>>> sub-navigation.. Could you please help?
>>>
>>>
>>> Currently, I'm using this typoscript
>>>
>>>
>>>
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>> #THIS BIT OF TYPO SCRIPT IS TO CREATE SUB-MENU
>>> [PIDinRootline = 8]
>>> page.10.subparts.SUBSIDENAV = HMENU
>>> page.10.subparts.SUBSIDENAV.special = directory
>>>
>>> [PIDinRootline = 8]
>>>      page.10.subparts.SUBSIDENAV.special.value = 8
>>> [end]
>>>
>>> page.10.subparts.SUBSIDENAV.1 = TMENU
>>> page.10.subparts.SUBSIDENAV.1.expAll = 1
>>>
>>> page.10.subparts.SUBSIDENAV.1.wrap = <div id="sub-navigation">
>>> {page:title} <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>
>>>
>>> [end]
>>> #END SUB-MENU
>>>
>>>
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>>
>>> The {page:title} above does not seem to work!?
>>>
>>> Please advise.
>>>
>>>
>>> John
>>
>>
>> --
>> I never knew how good Opera is as a newsreader! Try it!
>> (used Thunderbird and Evolution before)
>> _______________________________________________
>> TYPO3-english mailing list
>> TYPO3-english at lists.netfielders.de
>> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>>


More information about the TYPO3-english mailing list