[TYPO3-english] rss feed shows no news
    J. Bakshi 
    joydeep at infoservices.in
       
    Mon Mar  9 13:50:54 CET 2009
    
    
  
Dear list,
I have a running tt_news installation (2.5.2) and typo3 4.2.  page id 66
is the page where I have tt_news installed with list view. To get the
rss feed I have enabled the rss feed option inbuilt in the tt_news.
To do that I added the following
---------------------------
Constant
--------------------------
### Configure tt_news to display the xml template
### Page that contains the News List
xmlnewsfeed_id = 66
### RSS Setup
plugin.tt_news  {
   displayXML {
      
       xmlTitle = Thanal RSS
       xmlLink = http://192.168.1.1/mysite/
       xmlDesc = Exploring thanal
       xmlLang = en
       xmlIcon = fileadmin/rss_icon.jpeg
      
       title_stdWrap.htmlSpecialChars = 1
       title_stdWrap.htmlSpecialChars.preserveEntities = 1
       subheader_stdWrap.stripHtml = 1
       subheader_stdWrap.htmlSpecialChars = 1
       subheader_stdWrap.htmlSpecialChars.preserveEntities = 1
       subheader_stdWrap.crop = 500| ... | 1
       subheader_stdWrap.ifEmpty.field = bodytext
       xmlLastBuildDate = 1
  }
}
-------------------------------------
setup
-------------------------------------
# ------------- RSS News Plugin ------------------------------
### Header
page.headerData.500 = TEXT
########## this is in a single line ####################
page.headerData.500.value = <link rel="alternate"
type="application/rss+xml" title="RSS-Feed" 
href="http://192.168.1.1/thanal/index.php?id=66&type=100" />
# ------------- This enables the xml news feed ---------------------
xmlnews = PAGE
xmlnews {
  typeNum = 100
  10 >
  10 < plugin.tt_news
  10.pid_list = 66
  10.categorySelection = 37
 
  # show only selected categories
  10.categoryMode = 1
  10.defaultCode = XML
  config {
    disableAllHeaderCode = 1
    additionalHeaders = Content-type:text/xml
    no_cache = 1
    xhtml_cleaning = 0
  }
}
### RSS 0.91 feed ###
rss091Feed < xmlnews
rss091Feed {
   typeNum = 101
   10.displayXML.xmlFormat = rss091
}
### Atom 0.3 feed ###
atom03Feed < xmlnews
atom03Feed {
   typeNum = 102
   10.displayXML.xmlFormat = atom03
}
### Atom 1.0 feed ###
atom1Feed < xmlnews
atom1Feed {
   typeNum = 103
   10.displayXML.xmlFormat = atom1
}
### RDF feed ###
rdfFeed < xmlnews
rdfFeed {
   typeNum = 104
   10.displayXML.xmlFormat = rdf
}
-----------------------------------------------------------------------------
Now if I visit page 66 there is the list views of the news *BUT* if I
add type=100 like  ?id=66&type=100  I get the rss feed with out any news .
could some one give me any clue please ? please note the static
templates are already included in the template section.
Thanks
    
    
More information about the TYPO3-english
mailing list