[TYPO3-ttnews] RSS feeds and categories

Pieter pieter.v at gmx.net
Fri Mar 24 23:17:11 CET 2006


Francois Suter wrote:
> Hi,
> 
> Is it possible to have RSS feeds per news categories?
> 
> I have a general RSS feed defined for my whole site. This feed spans all 
> categories.
> 
> When I have a page that displays news only for a specific category, I 
> would like the RSS feed to be limited to that category too. To achieve 
> this I added the following TS as a template extension in the page:
> 
> plugin.tt_news {
>   categoryMode = 1
>   categorySelection = 1
> }
> 
> but it does not seem to be taken into account. Is this a fact or am I 
> going the wrong way about this?
> 
> Thanks for any advice.
> 
This has been answered before:
In typoscript:
    xmlnews = PAGE
    xmlnews {
      typeNum = 100
      10 >
      10 < plugin.tt_news
      10.pid_list >
      10.pid_list =  44
      10.singlePid = 45
     ### important part here!! ###
      10.categoryMode = 1
      10.categorySelection = 2
     ### important part end ###
      10.defaultCode = XML
      config {
        disableAllHeaderCode = 1
        additionalHeaders = Content-type:application/xml
        no_cache = 1
        xhtml_cleaning = 0
       }
    }

Pieter



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