[TYPO3] TT_news categories question
Peter Klein
peter at umloud.dk
Thu Jul 12 13:26:39 CEST 2007
Hi Cray. Try this (Untested)
Remove this part:
-- cut --
10 = TEXT
10.field = uid
10.dataWrap = <a href=index.php?id=32&tx_ttnews[cat]= | >
10.insertData = 1
-- cut --
And replace it with this:
-- cut --
stdWrap.typolink.parameter=32
stdWrap.typolink.additionalParams.dataWrap = &tx_ttnews[cat]={field:uid}
-- cut --
And also remove this part:
-- cut --
30 = TEXT
30.value = </a>
-- cut --
--
Peter Klein/Umloud Untd
"Cray Flatline" <cray at mass-media.net> skrev i en meddelelse
news:mailman.7259.1184221386.29892.typo3-english at lists.netfielders.de...
>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