Wednesday, 30 July 2003
Enabling multiple category posting in blojsom
I was reading this post from Mr. Roller on multiple categories and Roller and thought for a few seconds on how I would do that in blojsom. Here's my .02.
Create a plugin similar to the meta plugin for blosxom. Basically, this plugin is responsible for taking information from the blog entry that, for example, begins with a particular key and stuffs it into the meta-data for that particular blog entry. One of the key differences (and someone can educate me to the contrary) between blojsom and blosxom meta-data is that meta-data in blojsom is scoped to the individual blog entries and individual blog categories, where blosxom's is globally scoped. An entry posted to the java category (the entry's primary category) might look like:
A post about java and blojsom and OSX -meta-categories=blojsom, osx This is a post about Java technology and how it is used in blojsom.The plugin would take the meta information and populate a variable in the entry's meta-data keyed on "categories" and populated with "blojsom, osx". A second plugin would be reponsible for looping through the entries and looking for meta-data for the entries that begins with a particular key, for example, "categories". This way, the meta-data plugin is responsible for populating the meta-data for the entries and this categories plugin would be reponsible for taking the categories meta-data and creating the proper URLs to the other categories. The plugin could append information to the description such as, "This blog entry can also be categorized in the blojsom (link to blojsom category) and osx (link to osx category) categories." Ahhhhhh, the simplicity of it all
blojsom is proudly developed under OSX.
Posted by at 10:55 PM in blojsom ... all blojsom
