Le 1 mars 09 à 15:53, Cyril Mougel a écrit :
Harry Seldon a écrit :
Cyril Mougel wrote:
Harry Seldon a �crit :
Hey (again) guys,
If you have a look at this post (1) about Rails heroes RSS feeds
you
will see that they all use feedburners. My question is how to use
feedburner with Typo?
For instance how to change the feed address that appears when
clicking
on the RSS logo in firefox url bar (or its equivalent in Safari)?
How to change the address appearing in the syndication sidebar?
I use a rewrite url in my nginx configuration to redirect to
feedburner.
Thx Cyril,
Heu, never heard about nginx I am on a shared host. Isn't there a
solution using Typo? As it is really standard nowadays to use
feedburner, a simple solution would be appreciated.
Btw the (1) was for http://harryseldon.thinkosphere.com/2009/02/03/read-your-rails-heroes
.
If you want redirect to feedburner, you need Hack typo code.
In your app/controller/articles_controller.rb, in block format.rss {}
You need check if user-agent is feedburner or not. If not
feedburner, you need redirect to feedburner feed. Instead of you
need render partial.
A little hack (not tested is)
format.rss
{ if
request.env["HTTP_USER_AGENT"][/Feedburner/]
render :partial => 'articles/rss20_feed', :object =>
@article.published_feedback
else
redirect_to 'http://feeds2.feedburner.com/ProgDreamShiny'
end
}
Maybe a feature request to define that in a plugin is a good thing.
I've been willing to do this for a while now.
I've opened a feature ticket on Lighthouse :
http://fdv.lighthouseapp.com/projects/11171-typo-blog/tickets/51-add-feedburner-support-from-the-admin
This will be included in the nex release.
Cheers,
Frédéric
--
Frédéric de Villamil
"What's mine is mine. What's yours is still unsetteled" – Go player
proverb
frede...@de-villamil.com tel: +33 (0)6 62 19 1337
http://t37.net Typo :
http://typosphere.org
_______________________________________________
Typo-list mailing list
Typo-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/typo-list