[TYPO3] Dynamic parameters in TMENU

Lella bulella2001 at yahoo.it
Wed Jul 5 21:23:39 CEST 2006


Krystian Szymukowicz wrote:
> Lella wrote:
> 
>> Now I've a problem:
>>
>> I would to insert dinamically the title of the current page (where 
>> I'm) instead of "MainMenu" in the line 3.
>>
>> Anyone could help me? Thanks
> 
> hello
> 
> you may try to go with condition
> 
> temp.currentMenuTitle = TEXT
> 
> [treeLevel = 0]
> temp.currentMenuTitle.data = leveltitle:0
> [end]
> 
> [treeLevel = 1]
> temp.currentMenuTitle.data = leveltitle:1
> [end]
> 
> [treeLevel = 2]
> temp.currentMenuTitle.data = leveltitle:2
> [end]
> 
> 
> -- 
> Krystian

Thank you for the answer, I've try it but I don't be able to wrap the 
title of the current page in the tag <ul>

I've try this too:

1: lib.menu1 = HMENU
2: lib.menu1.1 = TMENU
3: lib.menu1.1.dataWrap= <ul id="menu_{field : currentPageTitle}">|</ul>
4: lib.menu1.1.NO.allWrap = | <BR>
5:
6: page = PAGE
7: page.typeNum = 0
8: page.5 = HMENU
9: page.5 < lib.menu1

but it don't work.





More information about the TYPO3-english mailing list