Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Contemplate module offers a templating system for RSS, which is not AFAIK available in core. Could we make RSS feeds themable, so we can have better control over content and display?
I'm thinking template files might be ok, although I'm conscious that it's XML and this might not be appropriate - maybe a GUI instead?
Comments
Comment #1
FiReaNGeL CreditAttribution: FiReaNGeL commentedRelated (feel free to mark either issue as duplicate) : http://drupal.org/node/217497
Comment #2
yan CreditAttribution: yan commentedSubscribing. I'm looking for a way to theme RSS feeds, too. But it's important to find a way that produces valid XML.
Comment #3
NikLP CreditAttribution: NikLP commentedI think it's probably pertinent to note that in this case, I refer to "theming" as controlling the contents of the xml in the feed.
This is really just outputting the relevant values in a particular node's content into a template file to get that into xml eventually.
I suppose that encapsulation of media causes an issue here, but if we could at least control what "normal" fields went into the xml, that would be a start.
Comment #4
yan CreditAttribution: yan commentedRight NikiLP, I think we're talking about the same thing. What I'd like to be able to do, for example, is add the node type or a category to title or description of a feed item.
Comment #5
dvessel CreditAttribution: dvessel commentedIs this not what you seek? I got it in 6 while doing the template conversions.
http://api.drupal.org/api/function/theme_aggregator_page_rss
edit: misread, I guess your talking about the output from here: http://api.drupal.org/api/function/format_rss_item/6 ..individual feeds.
You can override the themed wrapper and push it through something other than format_rss_item though.
Comment #6
NikLP CreditAttribution: NikLP commentedI think that probably covers it nicely :)
Comment #7
dvessel CreditAttribution: dvessel commentedMaking format_rss_item themable would be nice.
Would xml fall into this too? I know none of that is themable. I was about to convert some of the functions from there too but core doesn't use it by default and it was beyond me.
Comment #8
yan CreditAttribution: yan commentedOne way to theme RSS items has been shown in this forum post through a small module that implements a nodeapi hook. It works for me. Would be nice though not to have to make a module for that purpose.
Comment #9
Tom Ash CreditAttribution: Tom Ash commented"You can override the themed wrapper and push it through something other than format_rss_item though."
How exactly does one do that?