[TYPO3] problem with insertdata and wrap
lee perry
leeperry at slack.de
Thu Jun 19 16:37:21 CEST 2008
hey luca,
> Lerry,
> I understand
>
> ## subMenu [Begin]
> lib.subMenu = HMENU
> lib.subMenu.entryLevel = 1
> lib.subMenu{
> stdWrap.dataWrap = <div class="LeftMenuBox-id{field:pid}">|</div>
> }
Do you really want to wrap your whole subMenu with a different className
or different id on every page? Than use {page:uid} - with this
dataWrapping you will get on every page this different className (in
this case of 'class="LeftMenuBox-id{page:uid}"') - an id would be
better, but I don't know why do you need this...
> lib.subMenu.1 = TMENU
> lib.subMenu.1 {
> stdWrap.dataWrap = <div style="height:70px;"></div><ul
> id="LeftMenuList">|</ul>
> }
There is no data to insert anymore, so you can use the normal stdWrap.wrap
What do you want with this empty div with the height of 70px before the
list - as spacing? It would be nicer when you will do the spacing only
with a margin-top: 70px; of the ul-tag.
But maybe you will have another reason... (and it has nothing to do with
TYPO3 ;))
> lib.subMenu.1.NO {
> allWrap = <li>|</li>
> }
> lib.subMenu.1.ACT = 1
> lib.subMenu.1.ACT.allWrap = <li class="LeftMenu-ACT">|</li>
> ## subMenu [End]
>
> this seems to work but either {field:pid} or {field:uid} doesn't return
> any value
{field:uid} should working as same as {page:uid} - anyway try
{page:uid}, but think about my questions above.
>
> Grazie!!!
> L
Prego.
Lee
PS.: it's not necessary to send this news to my email-address as CC - I
will read it in the newsgroup.
More information about the TYPO3-english
mailing list