Page 1 of 1

Adjust RSS output

Posted: Fri Dec 10, 2010 8:48 am
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

Re: Adjust RSS output

Posted: Fri Dec 10, 2010 10:27 am
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

Re: Adjust RSS output

Posted: Fri Dec 10, 2010 4:32 pm
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.