I am trying to display an RSS feed from facebook using XML Feed Publishing Rule.
Nothing is displayed because the feed doesn't contains <dc:date>tag and therefore the rss.getItemsAsArray returns an empty string for it. Then that empty string is passed to application.thisCalendar.i18nDateFormat() which fails since the date parameter is required.
The feed contains a <pubDate>Tue, 24 Jan 2012 16:32:32 +0000</pubDate> tag. Would it be possible in the rss.getItemsAsArray to check if pubDate is available and return that as dc:date?
Also the publishing rule should handle the case when the returned dc:date is empty.
Thanks, Szabolcs
Environment
None
Activity
Show:
Geoff Bowers
May 17, 2012 at 1:11 AM
XML Feed publishing rule is ancient. Needs to be re-written to leverage CFFEED. Note there may already be a ticket for re-writing this rule!
I am trying to display an RSS feed from facebook using XML Feed Publishing Rule.
Nothing is displayed because the feed doesn't contains <dc:date>tag and therefore the rss.getItemsAsArray returns an empty string for it.
Then that empty string is passed to application.thisCalendar.i18nDateFormat() which fails since the date parameter is required.
The feed contains a <pubDate>Tue, 24 Jan 2012 16:32:32 +0000</pubDate> tag.
Would it be possible in the rss.getItemsAsArray to check if pubDate is available and return that as dc:date?
Also the publishing rule should handle the case when the returned dc:date is empty.
Thanks,
Szabolcs