Re: [Radiant] [ANN] FeedReader extension (take 2)

2009-03-19 Thread Haselwanter Edmund


On 18.03.2009, at 21:52, Sean Cribbs wrote:

I don't know how to solve that, except that links should be absolute  
(in general).  If you are generating RSS, make sure your guid/url  
elements have absolute URLs.  Beyond that, there's nothing that can  
be done short of parsing each summary with nokogiri/hpricot/etc and  
absolutizing URLs, which I know from experience is very sketchy.


Is there a build in way producing absolute urls in Radiant?

r:find url=/de/preiser:url//r:find

does not yield the desired result :-(

cu edi

--
DI Edmund Haselwanter, edm...@haselwanter.com, http://edmund.haselwanter.com/



___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] [ANN] FeedReader extension (take 2)

2009-03-18 Thread Haselwanter Edmund


On 10.03.2009, at 04:35, Sean Cribbs wrote:


Here's the goods:  http://github.com/seancribbs/radiant-feed-reader-extension


great news :-)

I gave it a try and to have a little issue.

What about relative urls in the content or summary part? I have a  
radiant site up and running and want to publish its rss feed on  
another radiant site.


This yields relative urls on the latter. But where to fix this?

a) on the rss producing site (how could I have FQDN absolute urls from  
r:content/ ?
b) on the consuming site ( substitute every relative url in the tag  
definition with the hostname and relative url )


this problem really drives me nuts :-(

btw. in e.g. NetNewsWire the Urls in the content are fixed


Make sure you read the README to get the proper installation  
instructions for Feedzirra - it can be a little tricky, depending on  
your platform. OS/X Leopard (not MacPorts) and Ubuntu 8.04 work just  
fine.


Here's the page where I'm using the extension: http://diopa.org/news/world


produces

undefined method `feed_url' for 0:Fixnum

in the content
--
DI Edmund Haselwanter, edm...@haselwanter.com, http://edmund.haselwanter.com/



___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] [ANN] FeedReader extension (take 2)

2009-03-18 Thread Sean Cribbs

Haselwanter Edmund wrote:

great news :-)

I gave it a try and to have a little issue.

What about relative urls in the content or summary part? I have a 
radiant site up and running and want to publish its rss feed on 
another radiant site.


This yields relative urls on the latter. But where to fix this?

a) on the rss producing site (how could I have FQDN absolute urls from 
r:content/ ?
b) on the consuming site ( substitute every relative url in the tag 
definition with the hostname and relative url )


this problem really drives me nuts :-(

btw. in e.g. NetNewsWire the Urls in the content are fixed


I don't know how to solve that, except that links should be absolute (in 
general).  If you are generating RSS, make sure your guid/url elements 
have absolute URLs.  Beyond that, there's nothing that can be done short 
of parsing each summary with nokogiri/hpricot/etc and absolutizing URLs, 
which I know from experience is very sketchy.

produces

undefined method `feed_url' for 0:Fixnum

in the content
I haven't updated to the latest version - this is fixed on github, 
thanks to ptomato (Victor Luft).  I'll get to it as soon another site 
I'm working on has launched.


Sean

___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


[Radiant] [ANN] FeedReader extension (take 2)

2009-03-09 Thread Sean Cribbs
Apologies to those who get this twice - late night emails FTL, ignore 
the previous.


Remember the RSSReader extension?  Well, it was gathering dust.  An 
older Radiant site that I recently upgraded to 0.7.x was using it, and 
it wouldn't work anymore after the upgrade, so I rewrote it.  Things 
have changed a lot in feed-parsing libraries too, since the last time 
this site was upgraded. The new hotness is Paul Dix's Feedzirra library, 
which uses a combination of native libxml bindings, a very SAXy machine, 
and a heaping of awesome DSL to become the fastest feed parser available 
to Rubyists!  So naturally, I chose Feedzirra.  As a result, the new 
feed_parser extension is much faster and has support for Atom and 
multiple versions of RSS.  And imagine this - for once I even decided to 
write decent documentation!


Here's the goods:  
http://github.com/seancribbs/radiant-feed-reader-extension


Make sure you read the README to get the proper installation 
instructions for Feedzirra - it can be a little tricky, depending on 
your platform. OS/X Leopard (not MacPorts) and Ubuntu 8.04 work just fine.


Here's the page where I'm using the extension: http://diopa.org/news/world

Enjoy, and Be Radiant!

Sean
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant