[TYPO3] TT_news categories question

Cray Flatline cray at mass-media.net
Thu Jul 12 08:22:46 CEST 2007


I have some question about tt_news, help me please:

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? I didn't find another solution ):


======== my TS =====


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>
        }
    }

I wrote already to tt_news mailing list, but nobody knows there ((((:
==
Wbr, Cray Flatline


More information about the TYPO3-english mailing list