NAME

Blosxom Plug-in: cooluri2


SYNOPSIS

Make Blosxom recognize date-based, extensionless URIs for everything. See http://www.w3.org/Provider/Style/URI.html for motivation.


VERSION

0.0.1


AUTHOR

Mark Ivey <zovirl@zovirl.com>, http://zovirl.com


DESCRIPTION

Make Blosxom recognize date-based, extensionless URIs for everything (both stories and categories). http://www.w3.org/Provider/Style/URI.html explains the motivation. The main goal is to use URIs which never have to be broken (ever!). The idea for this plugin came from the cooluri plugin by Rob Hague <http://www.blosxom.com/plugins/link/cooluri.htm>.

With cooluri2, URIs like this will be recognized:


 http://example.com/2003/12/03/category
 http://example.com/2003/12/14/category/story

Days and months can be left off if you prefer a shorter URI:

 http://example.com/2003/12/category
 http://example.com/2003/12/category/story
 
 http://example.com/2003/category
 http://example.com/2003/category/story

The date part of the URI is the creation date for that document. It is take from %blosxom::files, %blosxom::others, %metadate::dirs, or the last-modification time of the file itself. Note that stories may have different creation dates then the categories they are in, so you may end up with URIs like this:

 http://example.com/2003/10/23/category
 http://example.com/2003/12/14/category/story
 
This means, unfortunately, that users probably won't be able to modify a URI 
to find another document.

Extensions can still be used to specify a flavor. If no extension is present the default flavor will be used.


SEE ALSO

Blosxom Home/Docs/Licensing: http://www.raelity.org/apps/blosxom/

Blosxom Plugin Docs: http://www.raelity.org/apps/blosxom/plugin.shtml

If you use cooluri2, some of these other plugins might come in handy:

permalink
<http://zovirl.com/2003/software/blosxom/plugins/permalink_about>

makes your life easier by automatically generating Cool URI permalinks.

metadate
<http://zovirl.com/2003/software/blosxom/plugins/metadate_about>

allows you to have metadates for categories and non-story files (i.e. images, binaries, etc.).


BUGS

Address bug reports and comments to the Blosxom mailing list [http://www.yahoogroups.com/group/blosxom].


LICENSE

metadate Blosxom Plugin Copyright 2003, Mark Ivey

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ``Software''), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED ``AS IS'', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.