[TYPO3] Getting title of parent item in a menu
Loek Hilgersom
hilgersom at xs4all.nl
Sun Aug 19 18:10:24 CEST 2007
Hi Joey,
Getting rid of the currentpagetitle.cObject is a good idea, it's lot cleaner
like that. And the stdWrap works fine now, I thought I had tried that option but
must have made some other mistake then.
Nice sunday puzzle, other people solve crosswords :-)
All set, thanks again!
Loek
JoH asenau wrote:
>> 2 = TMENU
>> 2.NO {
>> allStdWrap {
>> # Show only if current-page-id and menu-item-parent_id match
>> if {
>> value.data = TSFE:id
>> equals.field = pid
>> }
>> }
>> stdWrap {
>> # Put the register content before the linktext
>> dataWrap = {register:level1Title}: |
>> }
>> # Wrap the item
>> allWrap = <li>|</li>
>> }
>
> The pid ceck doesn't make much sense here, since it will just behave like a
> default menu would do.
> Bit it works with the title as well
>
> 2 = TMENU
> 2.NO {
> allStdWrap {
> # Show only if current-page-id and menu-item-parent_id match
> if {
> value.data = page:title
> equals.field = title
> }
> }
> stdWrap {
> # Put the register content before the linktext
> dataWrap = {register:level1Title}: |
> }
> # Wrap the item
> allWrap = <li>|</li>
> }
>
More information about the TYPO3-english
mailing list