Adjust RSS output

Creating and modifying plugins.
Post Reply
danst0
Regular
Posts: 197
Joined: Tue Jul 13, 2004 10:50 am

Adjust RSS output

Post by danst0 »

Hi,

I recently changed the formatting of my in-article headlines from "strong" to "h5"; using CSS the headlines look like I want them to.

But in the resulting RSS feed the headlines are to small. Is there a way to adjust the output of the RSS feed? Eg. just automatically replacing all h5 with strong again?

Furthermore I realized that the layout of my tables is not what I wanted it to be (mainly too large fonts). Is it somehow possible to influence this as well?

Daniel
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Adjust RSS output

Post by garvinhicking »

Hi!

CSS is not parsed in RSS, you would need to use inline styles. :(

You could edit your feed*.tpl files and use {$entry.body|@replace:'<h5>':'<strong>'|@replace:'</h5>':'</strong>'}. With event plugins, one could also hook into the RSS generation and do such replacements within PHP...

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
onli
Regular
Posts: 3044
Joined: Tue Sep 09, 2008 10:04 pm
Contact:

Re: Adjust RSS output

Post by onli »

Most RSS-readers probably will ignore the inline-css.

"I the RSS" don't exists. You can browse a RSS-Feed with many different programs - Firefox, Google reader, and so on. It will look different in all of them.
Post Reply