[TYPO3-ttnews] Probs with tx_news + RSS

Bader Paul p.bader at techdivision.com
Fri Jun 29 15:55:11 CEST 2012


Hey & Thanks,


I  create with tx_news a rss feed - it works fine !

See under

http://www.estrategy-magazin.de/socialmedia/rss.html

http://www.estrategy-magazin.de/news.html


THE PROBLEM - I will show the date from every news - i have created the 
following xml file but I understood what is here wrong - Sorry

Have anybody an idea?

##########################
<pubDate> <n:format.date format="%a, %d %b 
%Y">{newsItem.datetime}</n:format.date></pubDate>
##########################

<?xml version="1.0" encoding="utf-8"?>
{namespace n=Tx_News_ViewHelpers}
<rss version="2.0">
     <channel>
         <title>{settings.list.rss.channel.title}</title>
         <link>{settings.list.rss.channel.link}</link>
<description>{settings.list.rss.channel.description}</description>
<language>{settings.list.rss.channel.language}</language>
         <f:if condition="{settings.list.rss.channel.copyright}">
<copyright>{settings.list.rss.channel.copyright}</copyright>
         </f:if>
         <pubDate><n:format.date format="%a, %d %b %Y %T %z" 
currentDate="true" /></pubDate>
         <lastBuildDate><n:format.date format="%a, %d %b %Y %T %z" 
currentDate="true" /></lastBuildDate>
         <f:if condition="{settings.list.rss.channel.category}">
<category>{settings.list.rss.channel.category}</category>
         </f:if>
<generator>{settings.list.rss.channel.generator}</generator>
             <f:if condition="{news}">
                 <f:for each="{news}" as="newsItem">
                     <item>
                            <pubDate> <n:format.date format="%a, %d %b 
%Y">{newsItem.datetime}</n:format.date></pubDate>
<title><n:format.hsc>{newsItem.title}</n:format.hsc></title>
                         <link><n:link newsItem="{newsItem}" 
settings="{settings}" configuration="{returnLast:'url'}" 
hsc="TRUE"></n:link></link>
<description><n:format.hsc><n:format.striptags>{newsItem.teaser}</n:format.striptags></n:format.hsc></description>
                     </item>
                 </f:for>
             </f:if>
     </channel>
</rss>




-- 
*Paul Bader* 	
	
Certified TYPO3 Integrator
Telefon +49 8031 2210 55 - 0 		
Telefax+49 8031 2210 55 - 22
<http://www.techdivision.com> 		
*TechDivision GmbH*
Spinnereiinsel 3a
83059 Kolbermoor 		

		
<http://www.techdivision.com/de_de/produkte.html> 	
	
		
*Geschäftsführer: Josef Willkommer, Stefan Willkommer*
Handelsregister Nr. HRB 17123, Amtsgericht Traunstein
UStID gemäß § 27 a Umsatzsteuergesetz: DE249664276



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