[TYPO3] wrapItemAndSub not for the last item

Bram Janssens info at bworx.be
Thu Jul 24 13:12:18 CEST 2008


Sergio Catalá Gil schreef:
> 
> Is there a way to remove the last "X"? Some kind of TS sentence that
> allows not using "wrapItemAndSub" for the last item (or even the
> first)? 
> 
> Thanks in advance, 
> Sergio
> 
> 

I also think that "Optionsplit" is a good idea

a small TS example:

temp.Menu = HMENU
temp.Menu.1 = TMENU
temp.Menu.1 {
wrap = <ul> | </ul>
NO.allWrap = <li> | </li>
NO.ATagParams = | |*||*|class="last"|
ACT = 1
ACT.allWrap = <li> | </li>
}

RESULT:

<ul>
	<li>item 1</li>
	<li>item 2</li>
	<li class="last">item 3</li>
</ul>

With de CSS class you configure the view of the last item.

Regards,

Bram
------------
www.bworx.be


More information about the TYPO3-english mailing list