Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
services
t3o sites
typo3.org
typo3.org
Commits
471a92f1
Commit
471a92f1
authored
Dec 19, 2019
by
Thomas Löffler
Browse files
Fix RSS feeds
parent
f640246e
Changes
2
Hide whitespace changes
Inline
Side-by-side
extensions/t3org_layout/Configuration/TypoScript/Ext/News.ts
View file @
471a92f1
...
...
@@ -93,6 +93,12 @@ page.headerData.100.value = <link rel="alternate" type="application/rss+xml" tit
link
=
{
$plugin
.
tx_news
.
rss
.
channel
.
link
}
}
}
view
<
plugin
.
tx_news
.
view
view
{
templateRootPaths
{
2
=
EXT
:
t3org_layout
/
Resources
/
Private
/
Templates
/
News
/
}
}
}
}
[
global
]
...
...
@@ -191,6 +197,12 @@ page.headerData.101.value = <link rel="alternate" type="application/rss+xml" tit
link
=
{
$plugin
.
tx_news
.
rss
.
channel
.
link
}
}
}
view
<
plugin
.
tx_news
.
view
view
{
templateRootPaths
{
2
=
EXT
:
t3org_layout
/
Resources
/
Private
/
Templates
/
News
/
}
}
}
}
[
global
]
extensions/t3org_layout/Resources/Private/Templates/News/News/List.xml
0 → 100644
View file @
471a92f1
<?xml version="1.0" encoding="utf-8"?>
<rss
version=
"2.0"
xmlns:content=
"http://purl.org/rss/1.0/modules/content/"
xmlns:atom=
"http://www.w3.org/2005/Atom"
xmlns:f=
"http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
xmlns:n=
"http://typo3.org/ns/GeorgRinger/News/ViewHelpers"
>
<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>
<f:format.date
format=
"r"
date=
"now"
/>
</pubDate>
<lastBuildDate>
<f:format.date
format=
"r"
date=
"now"
/>
</lastBuildDate>
<f:if
condition=
"{settings.list.rss.channel.category}"
>
<category>
{settings.list.rss.channel.category}
</category>
</f:if>
<atom:link
href=
"{f:uri.page(pageType: 100, absolute: 1) -> f:format.htmlentities()}"
rel=
"self"
type=
"application/rss+xml"
/>
<generator>
{settings.list.rss.channel.generator}
</generator>
<f:if
condition=
"{news}"
>
<f:for
each=
"{news}"
as=
"newsItem"
>
<item>
<guid
isPermaLink=
"false"
>
news-{newsItem.uid}
</guid>
<pubDate>
<f:format.date
format=
"r"
>
{newsItem.datetime}
</f:format.date>
</pubDate>
<title>
{newsItem.pathSegment -> f:format.case(mode:'upper')}: {newsItem.title -> f:format.htmlspecialchars()}
</title>
<link>
<f:format.htmlentities>
<n:link
newsItem=
"{newsItem}"
settings=
"{settings}"
uriOnly=
"1"
configuration=
"{forceAbsoluteUrl: 1}"
/>
</f:format.htmlentities>
</link>
<description>
{newsItem.teaser -> f:format.stripTags() -> f:format.htmlspecialchars()}
</description>
<content:encoded>
<f:format.cdata>
<f:format.html>
{newsItem.bodytext}
</f:format.html>
</f:format.cdata>
</content:encoded>
<f:if
condition=
"{newsItem.categories}"
>
<f:for
each=
"{newsItem.categories}"
as=
"newsItemCategory"
>
<category>
{newsItemCategory.title -> f:format.htmlspecialchars()}
</category>
</f:for>
</f:if>
</item>
</f:for>
</f:if>
</channel>
</rss>
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment