Related articles in nanoblogger

May 11, 2009

programming

All these wordpress blogs have a related articles line below the blog entries. Sadly nanoblogger does not have such a capability, so I wrote my own. It’s not a plugin in the nanoblogger sense of the word, it may be possible to rewrite it as a regular plugin, but I do not now how…

So for now a simple shell script, which you can find here.

Usage within a template

In your templates you should include the following:

$(/home/miekg/miek.nl/blog/bin/related $NB_EntryID)

the shell script returns the related articles separated with comma’s.

Nanoblogger