Faces in Feed?
Rick van der Zwet
rick at wzoeterwoude.net
Thu Nov 13 11:36:07 EST 2008
2008/11/13 Frank Steinborn <steinex at nognu.de>:
- Hide quoted text -
> On Thu, Nov 13, 2008 at 01:00:21AM +0100, Rick van der Zwet wrote:
>> 2008/11/12 Frank Steinborn <steinex at nognu.de>:
>> > sorry if this is the wrong list to ask this question, I just could not
>> > spot a better one. I have just one quick question: How can i set up
>> > planet so that the face-pictures are also in the feed?
>>
>> You are looking for the config entry 'face', as example
>> [http://www.example.com/rss]
>> face = foo.png
>> faceheight = 32
>>
>> Hint, check the sample config next time :-). Included in the package,
>> but also online at
>> http://www.gnome.org/~jdub/bzr/planet/devel/trunk/examples/basic/config.ini
>
> Well, this is configured. Faces also show up on the webpage. However, I
> want to have the Faces in the RSS-Feed too. Sorry, I probably wasn't
> clear enough.
Ah, you also want them to be appearing on the rss 2.0 feeds. That's a
bit more tricky, cause you actually have to alter the rss20.xml.tmpl
to include the template code.
By taking a look of http://planet.debian.net/rss20.xml you properly
see you have to copy/paste some code into the description tags, code
looks like this:
=== begin snippet ===
<TMPL_IF channel_face>
<img class="face" src="images/<TMPL_VAR channel_face ESCAPE="HTML">"
width="<TMPL_VAR channel_facewidth ESCAPE="HTML">" height="<TMPL_VAR
channel_faceheight ESCAPE="HTML">" alt="">
</TMPL_IF>
=== end snippet ===
Took the snippet code from
http://www.gnome.org/~jdub/bzr/planet/devel/trunk/examples/fancy/index.html.tmpl
.. not sure whether it works thought, have not tried it myself.
Feedback welcome :-)
/Rick
--
http://rickvanderzwet.nl
More information about the devel
mailing list