pubDate and guid in RSS

When creating a custom feed from e.g. a JSON source, it’s so irritating not to have pubDate or proper guid fields in the output RSS. Creating item.pubDate and item.guid entries won’t work. Here’s how to do it.

When creating a custom feed from e.g. a JSON source, it’s so irritating not to have pubDate or proper guid fields in the output RSS. Creating item.pubDate and item.guid entries won’t work. Here’s how to do it.

Here’s a module that converts date/time strings to relative time, e.g. “less than a minute ago”, “about 3 hours ago”, “about 26 days from now”, etc. It handles past and future dates and outputs relative time from minutes to years. The Date Input module is quite lax as to what constitutes a valid date, and everything is converted to UTC — make sure you test it first so there are no surprises.
For a demo, please see pipes.yahoo.com/plumber/reltimedemo. You can see it running below:
This module is for Gari. Hi, bro! :-)

To use a field as part of the replacement value in a Regex, use the following: ${fieldname}. You can use this with a String Builder as well.

Here’s a neat trick. Did you know that you can use the URL Builder to turn array elements into a slash-delimited string?

Given the Field in Regex and Array To String tricks, here’s a standalone tool that modifes your Tumblr feed such that the tags you assign to a post are appended to the title. You can optionally specify a regex for the tags that you want to exclude.
Check it out!