I've created an RSS feed for news-items, but I was wondering if it is possible to set the pubDate-field to the value of a CCK date field? If this is not possible, can I somehow omit the entire pubDate field?
I've had a look at the two default templates: views-view-rss.tpl.php and views-view-row-rss.tpl.php, but it seems that fields like pubDate are coming from variables which are filled somewhere else (perhaps $channel_elements or $item_elements). So I don't really know how to modify these templates, as I cannot see what is important and what isn't.
I hope someone can help.
Comments
Comment #1
dawehnerhttp://drupal.org/node/285962
Comment #2
pvanderspek commentedOk, so w.r.t. the fields-part of the question: this is mentioned in the other ticket as well.
The second part of my question is if I can remove pubDate altogether (I've changed the title to reflect this).
Oh and what about adding taxonomy terms? Is that possible?
Comment #3
merlinofchaos commentedYou will need to create a custom feed style to do this, I think.
Comment #4
pvanderspek commentedCould you point me to the direction of much needed documentation on how to do that?
That would really help
Comment #5
dawehnerThere is some documentation in advanced help.
http://www.archive.org/details/Views2fordevelopers is also a very good start
Comment #6
dagmarpvanderspek: if you remove pubDate from your feed, it will not validate as a valid RSS file. See #453974: Feed validator error in feeds generated by views: pubDate must be an RFC-822 date-time
Comment #7
dawehnerWith the documentation he can remove the pubDate :(