Now that RSS Channel Definitions can be created, the next step is to generate the RSS. A template is used for this, and the template-elements
property of RSS content instances is used to specify it. As usual, the template goes into the templates folder of a module. Here is what the template code looks like:
<%@ page import="com.deepthoughts.rss.*" %> <% // instantiate the RSS bean and get the feed RssFeedBean rss = new RssFeedBean(pageContext, request, response); rss.getFeed(); %>
There is not much to it as all the work is done in the RssFeedBean
Java class:
public class RssFeedBean extends CmsJspActionElement { /** URL parameter to specify the RSS feed format */ public static final String PARAM_FEED_FORMAT = "fmt"; /** the VFS path to the RssChannelDef instance */ protected String m_strChannel; /** POJO to represent the channel definition */ protected RssChannelDef m_rssChannelDef; /** Current...