Re: Tumbeblogging with pyblosxom?

chombee <[email protected]> Wed, 27 Feb 2008 15:53:51 +0000
Newsgroups gmane.comp.web.pyblosxom.user
Message-ID <1204127631.5809.19.camel@s0094060-desktop>
On Tue, 2008-02-26 at 09:53 -0500, will wrote:
> PyBlosxom doesn't support Python execution in templates, but PyBlosxom 
> does have flavour template overriding.  See the chapter on flavour 
> templates for more details:
> 
> http://pyblosxom.sourceforge.net/1.4/manual/flavours_and_templates.html#where-to-put-your-flavour-files
> 
> The piece that's missing is the posting bit.  That shouldn't be too hard 
> to do, but I know I don't have time to bang something like that out 
> right now.

Had a play around with this. It's almost right but not quite. It allows
you to override flavour templates on a per-category basis so that if the
user is viewing the links category at pyblosxom.cgi/links/ they will see
posts with the links flavour, whereas pyblosxom.cgi/quotes/ might use a
different quotes flavour. But when you're just looking at everything via
pyblosxom.cgi/ then everything looks the same, the overall flavour
template applies and none of the category-specific templates apply.

For a tumbleblog, you need to get posts of different types to be
formatted differently *on the front page*. Check out
http://humachine.us/ for example, you can see that text, link, quote,
img etc. posts have different formatting, on the front page.

The other problem is with post titles. With pyblosxom, every entry has a
title. But if the links category flavour is configured to display
nothing but a hyperlink and optional text following the link, then a
title doesn't come into it. But in pyblosxom you would still need to
give the post a title in the txt file. I think you could get away with
just leaving the first line of the file blank though, since the title is
never going to be used it's okay for it to be empty.

Pyblosxom splits all posts into title and body. If you wanted to turn it
into a tumbleblog, then the 'Text' category would be a normal post with
title and body. But most of the other types of post you could think of,
particularly microcontent types like Photo, Quote, Link, Audio, Video,
would not have a title. The title could be blank, and then you would
just use the body of the post, but apply a tumbleblog structure over
this by having different body templates.

For example to post a link some interface would require the user to
specify the link URL, the name of the link, and some optional text, and
that would be formatted according to a template such as:

<a href="$URL">$NAME</a> $TEXT

(with the first line of the template blank, to ignore the title).

I guess there are some other types of content you could imagine that
might use the title. For example, you might have Articles, Poems,
Stories, etc.

So it seems like it could be done on top of pyblosxom but that to get
all the different story templates displaying together on the front page
might require plugin.



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/