[TYPO3] problem with insertdata and wrap

lee perry leeperry at slack.de
Thu Jun 19 15:16:18 CEST 2008


hey luca,

at the time you wrap the TMENU (lib.subMenu.1) but you can wrap your 
HMENU (lib.subMenu) as well:

lib.subMenu.stdWrap ...

just try it.

and if this doesn't work - what kind of id (uid/pid/...) do you want to 
insert?

lee


> Hi Lee
> thanks. It worked but with pid!!
> Just a little question...is there a way to wrap the submenu module also 
> if there is not any item in the menu? in this way i can display the box 
> also whe is empty.
> Thank you again!
> 
> Luca
> 
> 
> lee perry ha scritto:
>> Ciao Luca,
>>
>> just try this one:
>>
>> stdWrap.dataWrap = <div class="LeftMenuBox-id{field:uid}"><ul 
>> id="LeftMenuList">|</ul></div>
>>
>> instead of:
>> stdWrap.wrap.insertData = 1
>> stdWrap.wrap = <div class="LeftMenuBox-id{field:uid}"><ul 
>> id="LeftMenuList">|</ul></div>
>>
>> Greetings,
>> Lee
>>
>>> Hi
>>> I've just started with typo3 and I'struggling to get throught with my 
>>> first job with it.
>>> I have a problem wrapping a menu with a div and using insertdata to 
>>> customize the box according to the page we are visiting. This is my code
>>>
>>> ## subMenu [Begin]
>>> lib.subMenu= HMENU
>>> lib.subMenu.entryLevel = 1
>>> lib.subMenu.1 = TMENU
>>> lib.subMenu.1 {
>>> stdWrap.wrap.insertData = 1
>>> stdWrap.wrap = <div class="LeftMenuBox-id{field:uid}"><ul 
>>> id="LeftMenuList">|</ul></div>
>>> }
>>> lib.subMenu.1.NO {
>>> allWrap = <li>|</li>
>>> }
>>> lib.subMenu.1.ACT = 1
>>> lib.subMenu.1.ACT.allWrap = <li class="LeftMenu-ACT">|</li>
>>> ## subMenu [End]
>>>
>>>
>>> I hope somebody can give me a hint on how to solve it!!
>>>
>>> Thank you!!
>>> Luca
>>


More information about the TYPO3-english mailing list