Monday, November 08, 2010 at 12:00 AM.

river2Suite.linkToFeedContents

on linkToFeedContents (feedurl) {
	<<Changes
		<<3/18/10; 11:14:20 AM by DW
			<<If we're generating a static page then return the empty string. We don't generate a feedcontents page in the static view (at least not yet).
		<<9/5/09; 5:44:18 PM by DW
			<<A bit of factored code. Displays the spyglass next to the feed name on the Home page, showing the most recent items from the feed. It will soon appear next to each feed name on the Feeds page as well.
	local (pta = html.getpagetableaddress ());
	if defined (pta^.river2.flStaticBuild) { //3/18/10 by DW
		if pta^.river2.flStaticBuild {
			return ("")}};
	local (img = river2Suite.loadImage ("linkToFeedContents.gif"));
	local (url = river2Suite.data.urls.feedPage + string.urlencode (feedurl));
	return ("<a href=\"" + url + "\">" + img + "</a>")}
<<bundle //test code
	<<dialog.alert (linkToFeedContents ("http://scripting.com/rss.xml"))



This listing is for code that runs in the OPML Editor environment. I created these listings because I wanted the search engines to index it, so that when I want to look up something in my codebase I don't have to use the much slower search functionality in my object database. Dave Winer.