Dates in RSS Feeds
  • Vote Up0Vote Down Scott September 2011

    Maybe I am totally missing the boat here, but is there a way to control the date associated with each entry in an RSS feed?

  • 5 Answers sorted by
  • Vote Up0Vote Down Scott September 2011

    To clarify, I know I can create my own rss feed ( using v:collection, etc., but what I am getting at is a simple attribute for v:rss that lets me show a pubDate for each item.

    This isn't a biggie, mostly curious if that attribute is available for v:rss.

  • Vote Up0Vote Down KevinKevin September 2011

    Here's how we do it:

    <v:text path="posted_on" strftime="%a, %d %b %Y %H:%M:%S %z" />

    Yeah, that should probably be built-in somehow. But this works!

  • Vote Up0Vote Down Scott September 2011

    Worked like a charm. Thanks.

  • Vote Up0Vote Down Scott September 2011

    Btw... for anyone else checking this out. Be sure to the v:rss tag rather than constructing your own rss feed using something like v:collection. The advantage to using the v:rss tag - aside from the fact that its less code to write - is that it strips out the html characters that are not valid in an rss feed (e.g. the non-breaking space character is not valid in an rss feed).

  • Also, if you try to use v:collection, Vae will stop parsing at the first line: <?xml version="1.0"?>

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Apply for Membership

In this Discussion