Re: permalink view flavouring/ looking for a css hack

"William Cybriwsky" <[email protected]>
Newsgroups gmane.comp.web.pyblosxom.user
Message-ID <op.tvm1qwhdmgzmhx@william-desktop>
On Tue, 17 Jul 2007 09:37:42 -0400, Will Guaraldi  
<[email protected]> wrote:

> On 7/17/07, William Cybriwsky <[email protected]> wrote:
>> Hi! Fairly new user of pyblosxom, liking it quite a bit. But I have a
>> problem (probably with multiple solutions): footer placement in
>> permalinked stories. You can see it at my pyblosxom blog:
>> http://cornerguy.adakist.com/cgi-bin/pyblosxom.cgi - the front page
>> display is how I'd have it on the permalinked pages, but the footer  
>> shows
>> up right after the story. It'd be preferable if a CSS guru could  
>> enlighten
>> me as to a clean solution, but failing that, is there a way to override
>> styles for permalinks/single stories?
>
> If you want a flavour for your indexes and a flavour for single
> stories/permalinks, then I think it's easiest to do a single flavour.
>
> However, ...  you could use the pyinclude plugin I wrote to
> differentiate between index pages and single-story pages and output
> different HTML/CSS accordingly.  It allows for Python blocks.
>
>    http://www.bluesock.org/~willg/cgi-bin/devtrac.cgi/wiki/pyinclude
>
> See if that helps.
>
>> P.S. - As a sidenote, I was wondering if anyone here would be interested
>> in the twitter plugin that I'm developing (also seen in action at the
>> site).  I still need to sort a few things out (download link, page
>> explaining it, so on) before submitting it to the plugin registry, but
>> would anyone actually use it?
>
> Someone else wrote a Netflix queue plugin and after discovering it, I
> started using it.  I don't have a Twitter account myself, but lots of
> people do and I'm sure there's some overlap between people who have
> Twitter accounts and people who use PyBlosxom.  Can't hurt to have it
> added to the registry.
>
> /will

This could definitely fill the role of 'overriding per page', although I  
need to admit I might be too much of a noob to figure out exactly how to  
do it (determine if i'm at a single story). Is there a variable that tells  
us this, or would it be more along the lines of grepping the url? Although  
I'd like to avoid absolute-positioning this (in case I ever write more  
than one page), but I guess it's the only way to go.

P.S. - do plugins need to follow the style guidelines?

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
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.