- SideBarItem item;
- item.set_sidebar_text (doc.get_title());
- item.set_sidebar_url (urlpath + doc.get_filename() + ".html");
- article_list.add_sidebar_item (item);
- // output the document also, add the side bars
+ // Add the document to RSS feed
+ RSSFeedItem fitem (doc.get_title(), doc.get_meta_desc (),
+ urlpath + doc.get_filename() + ".html",
+ doc.get_creation_date());
+ // If the items don't exceed max size of RSS feed
+ if (feed.get()->get_num_items() < MAX_RSS_FEED)
+ feed.get()->add_rss_item (fitem);
+ // Add the document details to the document list
+ DocListItem item (&doc, urlpath);
+ article_list.get()->add_document_item (item);
+ // output the document also, add the navigation bit and side bars
+
+ doc.set_navigation_bit (*navbit.get());