Gary Shewan <[EMAIL PROTECTED]> writes:
> On 1 May 2006, at 11:00, Piers Cawley wrote:
>
>> Gary Shewan <[EMAIL PROTECTED]> writes:
>>
>>> How easy would it be to add fixed text to the end of each post in the
>>> feed? I don't mean in the actual post itself, but automagically
>>> inserted on publish - only in the feed.
>>
>> Shouldn't be too hard (but you're going to be repeating yourself a
>> fair bit if you do it for all possible feed types), just add some
>> static content to your app/views/xml/_<feed_type>_item_article.rxml
>> templates (I think you should be able to do that in your theme
>> directory but I haven't tried it).
>
> Dear me you think it would be easy, but it isn't. I can kill the
> feed compliance by putting a made up tag in (I can live with that
> for now). Something along the lines of <rights> after each item
> using
Have you tried doing:
xm.content("type" => "text/html") do
item.full_html if this_blog.show_extended_on_rss
p('This content gets added to the end of every article')
end
Which seems like it should work to me.
--
Piers Cawley <[EMAIL PROTECTED]>
http://www.bofh.org.uk/
_______________________________________________
Typo-list mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/typo-list