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

dawehner’s picture

Status: Active » Closed (duplicate)
pvanderspek’s picture

Title: Views RSS feed using fields » Remove pubDate from Views RSS feed
Status: Closed (duplicate) » Active

Ok, 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?

merlinofchaos’s picture

Status: Active » Fixed

You will need to create a custom feed style to do this, I think.

pvanderspek’s picture

Status: Fixed » Active

Could you point me to the direction of much needed documentation on how to do that?
That would really help

dawehner’s picture

There is some documentation in advanced help.

http://www.archive.org/details/Views2fordevelopers is also a very good start

dagmar’s picture

pvanderspek: 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

dawehner’s picture

Status: Active » Closed (fixed)

With the documentation he can remove the pubDate :(