|laziness, impatience, and hubris|
Free Nodelet Hack: 'Newest Nodes' Menubarby jdporter (Canon)
|on Feb 24, 2006 at 16:43 UTC||Need Help??|
The links themselves come from the RSS feeds at prlmnks.org, filtered through a CGI script I wrote which converts the RSS XML to HTML. My script takes several parameters which control the HTML generation.
I embed this small fragment of HTML in my PerlMonks web page using <iframe...>. You don't see the iframe border in the screenshot, because I've set its frameBorder attribute to 0. You'll notice that some of the page style (css) propagates into the iframe, but not all.
This will put a 'newest nodes' link list in your Free Nodelet. (Of course, you'll want to have your Free Nodelet enabled in Nodelet Settings.)
In the example above, 'top' is the name of the feed. Here is the list of available feeds:
top all cufp note poem user snippet perlnews usergroup perlquestion bookreview qandasection obfuscated sourcecode scratchpad monkdiscuss perltutorial perlmeditation categorized_question(This is similar to, but not quite the same as, the list for the Newest Nodes XML Ticker.)
You can actually have more than one feed in the output listing — simply give more than one feed name, separated by commas. For example, pmrss.cgi?feeds=perlquestion,perlmeditation,monkdiscuss&max=12
You can also override the link count maximum on a feed-by-feed basis: put a number after the feed name, separated by a colon. For example, pmrss.cgi?feeds=perlmeditation,monkdiscuss:4&max=12
If you leave off the max= parameter, the limit used by prlmnks.org in its rss feeds will apply. I don't know what that limit might be, but the list of links is never very long.
Now — if you'd like to duplicate what I've done, as shown in the screenshot above, you'll want to add code like the following in your Free Nodelet:
Also note the image I've embedded in my Free Nodelet. ;-)
We're building the house of the future together.