[Radiant] rss_behavior plugin
BJ Clark
scidept at gmail.com
Mon Dec 18 00:59:52 CST 2006
Bryan, Sweet catch. Really nice man. Thanks.
I've got the rss_behavior working great now.
I did have to hack it a bit, so I'm posting here for posterity.
I'm also going to send this to the author.
If your using a "mephisto" blog for your RSS (I think this is a
mephisto thing, not a feedburner thing, but it could be feedburner
too) you don't have a <date> tag in your xml feed. You have published
and updated. So you need to add those two tags to the plugin:
tag "feed:published" do |tag|
tag.locals.item.published
end
tag "feed:updated" do |tag|
tag.locals.item.updated
end
That hung me up for a while, but I've got most everything kosher.
The only problem I"m still having is I need to reformat the date (on
the radiant side) and I'm not sure how to do this.
I need to reformat "Saturday, December 16, 2006" to "Dec. 16".
Anyone know how to do this (is it possible to do it in radius)?
Thanks,
BJ
On 12/17/06, Bryan <haccontact at yahoo.com> wrote:
> Hey BJ.
>
> Your feed url was hosed.
>
> Try this instead.
>
> <dl>
> <r:feed:items url="feed://feeds.feedburner.com/robotdeathsquad"
> limit="3">
> <dt><r:feed:link /> - <r:feed:date /></dt>
> <dd><r:feed:content /></dd>
> </r:feed:items>
> </dl>
>
>
> Take care,
>
> Bryan
>
> http://www.boulderanalytics.com
>
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Radiant mailing list
> Post: Radiant at lists.radiantcms.org
> Search: http://radiantcms.org/mailing-list/search/
> Site: http://lists.radiantcms.org/mailman/listinfo/radiant
>
More information about the Radiant
mailing list