[TYPO3] TS Help: how to get the title of the current page's parent into a TEXT cObj? (SOLVED)
Ricardo Scachetti Pereira
ricardo at tdwg.org
Wed Jul 12 14:33:24 CEST 2006
Sorry,
The correct answer is:
page.10 = TEXT
page.10 {
data = leveltitle : -2
wrap = <b>|</b>
}
Using "leveltitle : 0" will return the title of the homepage (root
page).
Using "leveltitle : -1" will return the title of the current page.
Cheers,
Ricardo
Ricardo Scachetti Pereira wrote:
> Thanks a lot Tyler,
>
> Just for the record, here is the answer:
>
> page.10 = TEXT
> page.10 {
> data = leveltitle : 0
> wrap = <b>|</b>
> }
>
> Thanks again!!
>
> Cheers,
>
> Ricardo
>
> Tyler Kraft wrote:
>
>> look at the getText data part of TSref, and you need field, leveltitle
>>
>> hth
>>
>> Ricardo Scachetti Pereira wrote:
>>
>>
>>> Hi all,
>>>
>>> I need to get the title field (or nav_title) of the parent of the
>>> current page into a TEXT cObj. Can anyone help me write the TypoScript
>>> that does that? Thanks!!
>>>
>>> The following gives me the title of the current page into a TEXT cObj:
>>>
>>> page.10 = TEXT
>>> page.10 {
>>> field = nav_title // title
>>> wrap = <h2> | </h2>
>>> }
>>>
>>> How do I get the title of the parent? Thanks.
>>>
>>> Ricardo
>>>
>>>
>>>
>> _______________________________________________
>> TYPO3-english mailing list
>> TYPO3-english at lists.netfielders.de
>> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>>
>>
>>
>
> _______________________________________________
> 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