Skip to content

Commit

Permalink
[FEATURE] Allow to set a ttl for the rss feed
Browse files Browse the repository at this point in the history
  • Loading branch information
KrohnMi committed Nov 22, 2023
1 parent 162b987 commit c4ba0fa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Configuration/TypoScript/constants.typoscript
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ plugin.tx_news {
generator = TYPO3 EXT:news
# cat=plugin.tx_news/rss; type=int+; label=Page Type Number
typeNum = 9818
# cat=plugin.tx_news/rss; type=int+; label=Number of minutes the feed can stay cached
ttl =
}

opengraph {
Expand Down
3 changes: 3 additions & 0 deletions Resources/Private/Templates/News/List.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
<f:if condition="{settings.list.rss.channel.copyright}">
<copyright>{settings.list.rss.channel.copyright}</copyright>
</f:if>
<f:if condition="{settings.list.rss.channel.ttl}">
<ttl>{settings.list.rss.channel.ttl}</ttl>
</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}">
Expand Down

0 comments on commit c4ba0fa

Please sign in to comment.