Re: where is the $mood variable set??

Rishabh Manocha <[email protected]>
Newsgroups gmane.comp.web.pyblosxom.devel
Message-ID <[email protected]>
On Apr 10, 2005 11:21 AM, Wari Wahab <[email protected]> wrote:
> If you have #mood set to a filename on your entry, then you made life
> simpler for yourself. filenames like "happy.gif" or "skanky.jpg" for
> example.
> 
> In your body templates, you then have something like:
> 
> <img src="/path/to/image/$mood" />

That seems like a great idea....i have to say...I never thought of that. 
 
> And that's it.
> 
> To have something that only displays only when you have $mood set, then
> you need to either make a plugin, or use something fancy like the
> interpolate fancy plugin, which if I'm not wrong, a user (Pasi
> Savolainen of http://www.iki.fi/pasi.savolainen) has implemented, but
> it's not released in the wild yet. With that plugin, one can
> potentially do:
> 
> <?$mood><img src="/path/to/image/$mood" /></?>
> 
> This will display the whole line if $mood is defined. Do ask him on the
> state of the plugin.

I will try to contact him...his page seems to be all in finnish so it
will take me a bit to understand it all and maybe find the plugin on
the site...

Thanks
R 
> 
> On 10-Apr-05, at PM 03:35, Rishabh Manocha wrote:
> 
> > Hey guys,
> > I was wanting to place an image when i define a mood in an entry
> > (#mood ).
> > I was looking in the source .py files to see where $mood is set so
> > that I can change that to displaying an image but i could not find
> > that point. Could someone tell me where I can find this.
> > Also is there any better way to do this?? like a plugin or something?
> > How would i get information from the entry into a plugin??
> > Thanks
> > Rishabh
> >
> >
> > -------------------------------------------------------
> > SF email is sponsored by - The IT Product Guide
> > Read honest & candid reviews on hundreds of IT Products from real
> > users.
> > Discover which products truly live up to the hype. Start reading now.
> > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> > _______________________________________________
> > Pyblosxom-devel mailing list
> > Pyblosxom-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> > https://lists.sourceforge.net/lists/listinfo/pyblosxom-devel
> >
> 
>


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
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.