[Typo3] tt_news archive parameter

Christopher bedlamhotel at gmail.com
Thu Nov 24 18:33:26 CET 2005


Hi,

On 24/11/05, Pedro Pedro <correotypo3 at gmail.com> wrote:
> Hi, I've implemented to different sections in my site with tt_news, one
> called news and another one called events. I want to assign different
> archives page for this two sections (the news archive page and the events
> archive page), but I don't know how to do this. I write this typo script
> code in the general template of the site:
>
> plugin.tt_news {
>    archiveTypoLink.parameter = 221
> }
>
> 221 is the id of the news archive page and I would like to do something like
> that for the events archive page with id: 244. I try writing the same code
> with the number 244 in the TSconfig of the event archive page but it doesn't
> work. Can any body help me?. thanks

TSconfig is the wrong place for this info. Put it in the setup field
of a TS template on the relevant page and it should work.
Alternatively put all the TS in one place and use conditions [1] to
change the parameter. E.g:

### Conditions based in the page id
### See TSref [2]
[globalVar = TSFE:id = 18]
plugin.tt_news.archiveTypoLink.parameter = 221
[globalVar = TSFE:id = 19]
plugin.tt_news.archiveTypoLink.parameter = 244
[globalVar = TSFE:id = 20]
plugin.tt_news.archiveTypoLink.parameter = 267
[global]

-Christopher


[1] http://typo3.org/documentation/document-library/doc_core_tsref/Condition_reference/
[2] http://typo3.org/documentation/document-library/doc_core_tsref/globalVars/



More information about the TYPO3-english mailing list