Download & Extend

format_rss_item function not flexible enough

Project:Drupal core
Version:5.1
Component:base system
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed (won't fix)

Issue Summary

I've bumped into a wall with format_rss function when trying to associate taxonomy terms with items in RSS feed.

Drupal allows us to associate more than one taxonomy term with each node. Thus, each item in rss feed may have multiple "category" or "dc:subject" tags associated to it. This is AFAIK completely legal in rss 2.0, but impossible to obtain with a current "format_rss_item" function.

A posible solution would be to allow array elements in $args argument of the format_rss_item functions to be arrays, such as:

$args= array (
'pubDate' => date('r', $item->changed),
'icbm:latitude' => $item->lat,
'icbm:longitude' => $item->lon),
'dc:subject' => array ('drupal', 'rant', 'bugs')
)

when given this array, format_rss_item function should return three "dc:subject" tags.

Can you change this in HEAD if I provide you a patch? (I didn't check the HEAD, sorry if this has already been dealt with.)

Comments

#1

OK, I did the nessesary changes, and the function works fine now. How can I submit it?

On a related note: I've been hacking a lot on Drupal lately, and I feel like helping out with the development. What's the procedure for getting a full CVS access?

#2

Version:4.4.1» x.y.z

#3

Version:x.y.z» 5.1

I realize this is an old post, but on the off chance there is someone with code or information on how to incorporate drupal taxonomy terms into the rss item category tags, I am also interested in this topic.
Thanks,
DT

#4

Status:active» closed (won't fix)

Considering the age of this issue with no responses and that D5 is unsupported, I am closing this issue.

nobody click here