“Your plugin has been assimilated”
It’s with some amusement that I saw a question on the blosxom list go from my own hapless contribution to a full fledged plugin in less than 24 hours. (The gory details are here.)
My idea was
category_desc
,
the code was Stu McKenzie’s. I guess I’ll take up the baton and write
some documentation.
The basic premise was that I wanted to provide a more detailed
description of a category when viewing its “front page”
(http://www.foo.com/blog/bar/ for the category “bar”, for example.)
The link between categories and descriptions is in the %descriptions
hash. This hash is accesses by the head
sub and the variable
$category_desc::description
is accessible in the head.foo
flavour.
Caveats: you have to know how to write Perl for this plugin to work for you.
You can see it in action at http://gustaf.symbiandiaries.com/weblog/alt.
You can also do this with the config
plugin and with
postheadprefoot
. In both those cases, a file has to be created in
each category directory. This method keeps everyhing in a central
place.
Update 2005-08-28: the information is now available in the story flavour too: Stu explains it here.
Update 2006-03-02: you can get the plugin here.
Updated on Thursday, 2006-03-02.
Posted at 10:39,
in the scrivener category. Comments [0]
Submit this story to: » del.icio.us
» digg
» reddit. Search for it on
technorati.
Submit a comment
Please enter comments as plain text only; HTML is not supported. Submitting an URL is optional.
Comments are moderated and may not appear immediately.
Comments are closed for this story.