Adding RSS Feed
From Aikiframework wiki
So you want an rss feed on your website? Its pretty simple with aiki.
- Create a widget with a name like feed
- set the address/url field to be feed
- In the select query field, select the data you want to display:
SELECT content.* FROM content, content_type WHERE content.type = content_type.id AND content.status = 2 ORDER BY content.id DESC
- In the Content field, display the content:
(noloop(<?xml version="1.0"?>
<rss version="2.0">
<channel>
<title>RSS Feed</title>
<link>[root]/feed</link>
(select DATE_FORMAT(NOW(), '%a, %e %b %Y %T') as rss_date||
<lastBuildDate>[-[rss_date]-]</lastBuildDate>)
)sql)
<description>Articles</description>
)noloop)
<item>
<author>((author))</author>
<title>((title))</title>
<link>[root]/detail/((id))</link>
<pubDate>((creation_date))</pubDate>
<description>((content))</description>
</item>
(noloop_bottom(
</channel>
</rss>
)noloop_bottom)
- Set "Custom Output" field to Yes
- Set the "Send Custom http header" to:
Content-Type: application/xml;
- Now, access your feed at:
http://YOURAIKISITE.WHATEVER/feed
And you have a feed.
NOTE: This same technique works for outputting any type of content through aiki framework.

