[TYPO3-ttnews] [TYPO3] Menu generating: wrap question

Cray Flatline cryangel at gmail.com
Tue Aug 21 07:09:41 CEST 2007


I'm generating news categories list (only first level categories) with 
such TS. And it works well except the one little thing. It gives me not

<li><a href="..">Menu item</a></li>

but completely ugly

<a href=".."><li>Menu item</li></a>

I'm new to TS, and any of my experiments failed. I can't wrap link with 
<li> AFTER but not before.

Please help me somebody. (:

=======================================================================

temp.leftmenu = CONTENT
temp.leftmenu {
       table = tt_news_cat
       select {
           # the category folder(s)
           pidInList = 36
	andWhere = parent_category =  10

       }
       renderObj = COA
       renderObj.wrap = <li>|</li>
       renderObj {
	stdWrap.typolink.parameter=32
	stdWrap.typolink.additionalParams.dataWrap = &tx_ttnews[cat]={field:uid}
          20 = TEXT
           20 {
               field = title
               wrap = <span>|</span>
               if {
                   value.field = uid
                   equals.data = GPvar:tx_ttnews|cat
               }
           }
           21 = TEXT
           21 {
               field = title
               wrap = |
               if {
                   value.field = uid
                   equals.data = GPvar:tx_ttnews|cat
                   negate = 1
               }
           }
       }
}


-- 
W BR, Cray Flatline


More information about the TYPO3-project-tt-news mailing list