Stumbled upon this minor annoyance tonight; it turns out that we can't override feeds for taxonomy terms (/taxonomy/term/feed) as its built by an hard coded call to node_feed in node.module, leaving me no choice to hack at core.

I'm surprised there's not a theme function to override, am I missing something?

I filed this against 7.x so that it does not fall into oblivion; I experience this with 5.6 but it hasn't changed since then (the code is now in taxonomy.pages.inc but is still hard coded to call node_feed directly, which can't be themed).

Comments

mfer’s picture

Are you looking for a way to style what's there or alter the output?

See http://drupal.org/node/189445 to add style sheets to RSS feeds (like feedburner does).

hook_nodeapi offers an interface to RSS items. http://api.drupal.org/api/function/hook_nodeapi/6

See the http://drupal.org/project/remove_upload_enclosures for a module that alters the RSS feed this way.

I'd expect the new services system to redo how drupal does RSS feeds.

FiReaNGeL’s picture

Sorry, by theming I meant altering the actual content of the RSS feed.

jgoldberg’s picture

Status: Active » Postponed (maintainer needs more info)

Like mfer said, you should be able to use hook_nodeapi to intercept and alter the content being written out as an RSS feed. If you think you can't accomplish what you need using this approach, let us know.

NancyDru’s picture

Personally, I'm looking for a full page theming solution. The current method makes it look to the user like they've completely left my site and have no way to get back. This, IMHO, is really bad form. I work at making my site look like my site and node_feed looks very, very different and has no heading, menus, or anything else that looks like my site. I will look into the links above, but this really needs to be addressed by core.

sun.core’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)

mfer listed all possible other issues already. (Thanks!)

NancyDru’s picture

Status: Closed (duplicate) » Active

IMHO, none of those is a solution to this. The first one just an open issue without even a patch.

dawehner’s picture

If you need theming for it you could use hook_menu_alter or build the feed with views.

I think the reason why node_feed is not themeable is that rss output is specified and shouldn't be changed.