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

FiReaNGeL’s picture

Related (feel free to mark either issue as duplicate) : http://drupal.org/node/217497

yan’s picture

Subscribing. I'm looking for a way to theme RSS feeds, too. But it's important to find a way that produces valid XML.

NikLP’s picture

I 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.

yan’s picture

Right 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.

dvessel’s picture

Status: Active » Postponed (maintainer needs more info)

Is 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.

NikLP’s picture

I think that probably covers it nicely :)

dvessel’s picture

Status: Postponed (maintainer needs more info) » Active

Making 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.

yan’s picture

One 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.

Tom Ash’s picture

"You can override the themed wrapper and push it through something other than format_rss_item though."

How exactly does one do that?