Create a RSS Feed object.
You can add items to a feed with <add-feed-item>.
<view libname="view.feed"><!-- create feed object --><get-fq-url name="list" dst="blog_url" /><feed title="${.app.settings.title or 'blog'}"description="${.app.settings.description or 'blog feed'}"link="${blog_url}" dst="feed"/><db:query model="#Post" dst="posts" orderby="-published_date"filter="#Post.published==True" maxresults="25"/><!-- add items --><for src="posts" dst="post"><get-fq-url name="showpost" let:slug="post.slug" dst="post_url"/><process-markup src="post.content" type="${.app.settings.default_markup}" dst="description"/><add-feed-item src="feed"title="post.title" link="post_url" description="description"pub_date="post.published_date"/></for><!-- serve feed XML --><serve-xml content_type="application/rss+xml" obj="feed"/></view>
name | purpose | type | required? | default | choices |
---|---|---|---|---|---|
description |
Description of feed | text | Yes | ||
language |
Language | text | No | ||
link |
Link | text | Yes | ||
title |
Title of Feed | text | Yes |
name | purpose | type | required? | default | choices |
---|---|---|---|---|---|
dst |
Destination | reference | No | ||
if |
Conditional expression | expression | No | yes |
|
value |
Value | expression | No | None |