Documentation
feedEntries
Ce petit plugin, sans interface d’administration et ne nécessitant aucune configuration particulière, fournit un jeu complet de balises pour intégrer un flux RSS ou Atom au sein d’un template.
Les balises
- <tpl:Feed source=”url”></tpl:Feed>
- {{tpl:FeedTitle}}
- {{tpl:FeedURL}}
- {{tpl:FeedDescription}}
- <tpl:FeedEntries lastn=”nb”></tpl:FeedEntries>
- <tpl:FeedEntriesHeader></tpl:FeedEntriesHeader>
- <tpl:FeedEntriesFooter></tpl:FeedEntriesFooter>
- <tpl:FeedEntryIf></tpl:FeedEntryIf>
- {{tpl:FeedEntryIfFirst}}
- {{tpl:FeedEntryIfOdd}}
- {{tpl:FeedEntryTitle}}
- {{tpl:FeedEntryURL}}
- {{tpl:FeedEntryAuthor}}
- {{tpl:FeedEntrySummary}}
- {{tpl:FeedEntryExcerpt}}
- {{tpl:FeedEntryContent}}
- {{tpl:FeedEntryPubdate}}
Exemple
<h3><a href="https://dotclear.org/actualites">Actualités</a></h3>
<tpl:Feed source="https://dotclear.org/feed/category/Actualités/atom">
<ul>
<tpl:FeedEntries lastn="5">
<li><a href="{{tpl:FeedEntryURL}}">{{tpl:FeedEntryTitle encode_html="1"}}</a>
<ul>
<li>publié le {{tpl:FeedEntryPubdate}}</li>
<li>par {{tpl:FeedEntryAuthor}}</li>
</ul>
</li>
</tpl:FeedEntries>
</ul>
</tpl:Feed>
