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
Adjust RSS output
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Adjust RSS output
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
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/
# 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/
Re: Adjust RSS output
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.
"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.