[TYPO3-german] RSS und Bilder-Tag

Philipp Holdener philipp.holdener at me.com
Thu Nov 22 08:47:12 CET 2012


Hallo Pedro

> Ich habe im Internet nachgeschaut, aber nicht gefunden, wie ich die
> TT-News einstellen kann. (Feed mit tt_news funktioniert ohne Bild!).
>

ich hab mir selber ein rss template gebastelt weil bei mir die 
Bildanzeige nicht funktionierte.


rss2.tmpl

<!-- ###TEMPLATE_RSS2### begin -->###XML_DECLARATION###
<rss version="2.0"
  xmlns:content="http://purl.org/rss/1.0/modules/content/"
  xmlns:wfw="http://wellformedweb.org/CommentAPI/"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xmlns:atom="http://www.w3.org/2005/Atom"
  xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
  xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
  >
  <channel>
  <!-- ###HEADER### begin -->
  <title>###SITE_TITLE###</title>
  <atom:link href="###SITE_LINK###newsarchive/rss.xml" rel="self" 
type="application/rss+xml" />
  <link>###SITE_LINK###</link>
  <description>###SITE_DESCRIPTION###</description>
  ###SITE_LANG###
  <image>
  <title>###SITE_TITLE###</title>
  <url>###IMG###</url>
  <link>###SITE_LINK###</link>
  <description>###SITE_DESCRIPTION###</description>
  </image>
  <generator>TYPO3 - get.content.right</generator>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  ###NEWS_COPYRIGHT###
  ###NEWS_WEBMASTER###
  ###NEWS_MANAGINGEDITOR###
  ###NEWS_LASTBUILD###
  <!-- ###HEADER### end -->
  <!-- ###CONTENT### begin -->
  <!-- ###NEWS### begin -->
  <item>
  <title>###NEWS_TITLE###</title>
  <link>###NEWS_LINK###</link>
  <description><![CDATA[###NEWS_SUBHEADER###]]>
  <![CDATA[<p></p>]]><![CDATA[###NEWS_IMAGE###<br />]]>
  <![CDATA[###NEWS_CONTENT###]]></description>
  ###NEWS_CATEGORY###
  <guid>###NEWS_LINK###</guid>
  <pubDate>###NEWS_DATE###</pubDate>
  ###NEWS_RSS2_ENCLOSURES###
  </item>
  <!-- ###NEWS### end -->
  <!-- ###CONTENT### end -->
  </channel>
</rss><!-- ###TEMPLATE_RSS2### end -->



Constants
plugin.tt_news.displayXML.rss2_tmplFile = fileadmin/templates/rss2.tmpl

Setup
[globalVar = GP:type = 100]
  config.absRefPrefix = http://www.domain.com/
[global]


Gruss
Philipp




More information about the TYPO3-german mailing list