Initial commit - Typo3 11.5.41
This commit is contained in:
27
fileadmin/templates/ext/news/Templates/News/List.atom
Normal file
27
fileadmin/templates/ext/news/Templates/News/List.atom
Normal file
@@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
{namespace n=Tx_News_ViewHelpers}<feed xmlns="http://www.w3.org/2005/Atom">
|
||||
<title>{settings.list.rss.channel.title}</title>
|
||||
<link href="{settings.list.rss.channel.link}"/>
|
||||
<link rel="self" href="<f:format.htmlentities><f:uri.page pageType="9818"/></f:format.htmlentities>"/>
|
||||
<id><f:uri.page/></id>
|
||||
<updated><n:format.date format="c" currentDate="1" strftime="0"/></updated>
|
||||
<f:if condition="{news}">
|
||||
<f:for each="{news}" as="newsItem">
|
||||
<entry>
|
||||
<id>{settings.list.rss.channel.link}news-{newsItem.uid}.atom</id>
|
||||
<title><n:format.hsc>{newsItem.title}</n:format.hsc></title>
|
||||
<author>
|
||||
<name><f:if condition="{newsItem.author}"><f:then>{newsItem.author}</f:then><f:else>-</f:else></f:if></name>
|
||||
<f:if condition="{newsItem.author_email}"><email>{newsItem.author_email}</email></f:if>
|
||||
</author>
|
||||
<published><n:format.date format="c" strftime="0">{newsItem.crdate}</n:format.date></published>
|
||||
<updated><n:format.date format="c" strftime="0">{newsItem.datetime}</n:format.date></updated>
|
||||
<link rel="alternate" type="text/html" href="<n:format.hsc><n:link newsItem="{newsItem}" settings="{settings}" uriOnly="1" /></n:format.hsc>"/>
|
||||
<summary><n:format.hsc><n:format.striptags>{newsItem.teaser}</n:format.striptags></n:format.hsc></summary>
|
||||
<content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">
|
||||
<f:format.html>{newsItem.bodytext}</f:format.html>
|
||||
</div></content>
|
||||
</entry>
|
||||
</f:for>
|
||||
</f:if>
|
||||
</feed>
|
||||
Reference in New Issue
Block a user