[TYPO3-ttnews] Categories Menu help

Cray Flatline cray at mass-media.net
Mon Jul 9 17:40:01 CEST 2007


I'm using such TS to show first level of categories as menu. But as you 
see, it gives links not compartible with realurl. Can anybody help me to 
make menu to show not index.php?id=32.... but /news/Company-News.html 
links there?





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 {
           10 = TEXT
           10.field = uid
           10.dataWrap = <a href=index.php?id=32&tx_ttnews[cat]= | >
           10.insertData = 1
            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
               }
           }
           30 = TEXT
           30.value = </a>
       }
   }


==
Wbr, Cray Flatline


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