Re: Configurable location for individual posts

will <[email protected]>
Newsgroups gmane.comp.web.pyblosxom.user
Message-ID <[email protected]>
I would suggest experimenting with your proposal by creating a plugin 
that implements it.

You'll need to implement cb_pathinfo (which allows you to recognize that 
the url is yyyy/mm/story and pick out the important parts) and I think 
you'll probably need cb_filelist, too.  It's possible you can do the 
whole thing with just cb_pathinfo.

/will


Steve Hoelzer wrote:
> I like the date-based archives (yyyy/ and yyyy/mm/) but also would
> like the path to individual posts to be in the form
> 
>     http://url.com/yyyy/mm/story.html
> 
> Is it feasible to add a config var for where individual posts will be
> rendered? The options that make sense to me are:
> 
> 1. category: http://url.com/category/story.html (current behavior)
> 2. day: http://url.com/yyyy/mm/dd/story.html
> 3. month: http://url.com/yyyy/mm/story.html (my preference)
> 4. year: http://url.com/yyyy/story.html
> 5. root: http://url.com/story.html
> 
> I realize that enabling this will lead to conflicts when posts in
> different categories have the same file name. For example, a/z.txt and
> b/z.txt could both result in yyyy/mm/z.txt. That's a risk the user
> would need to be aware of when enabling this feature.
> 
> So, is it feasible? Is anyone interested besides me?
> 
> Steve

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.