Forums / Developer / RSS Import - picture link for each item

RSS Import - picture link for each item

Author Message

Kevin Gaudin

Friday 20 May 2011 3:56:23 am

Hi,

I need to define a RSS structure to be imported in eZ Publish where I want to be able to retrieve a picture URL for each feed item (article).

The RSS spec defines an <image> element that can only be used for the whole feed channel and not for each item.

I've read different strategies for implementing this in RSS but I don't think I can use any of these as an input for eZ Publish with the standard RSS Import feature.

The list of item fields that can be mapped to object attributes seems to be hard coded to:

  • title
  • link
  • description
  • author
  • category
  • comments
  • guid
  • pubdate

I can't find any valid way of doing this with standard methods, has anyone here already solved this and how ?

Thanks for your help,

Kevin

Twitter: @kevingaudin

SEBBANE Alexandre

Wednesday 01 June 2011 1:13:48 pm

Hello

you can try to use SQLIimport

you have to code a RSS import handler 

and then use a content class to pilot it ...

Paris, France

Kevin Gaudin

Wednesday 01 June 2011 1:22:11 pm

Thanks for your reply Alex ;-)

Not exactly the kind of answer I expected though (sure, there are ways to code it ourselves), but a SQLIimport handler could be a nice starting point if we don't want to start from scratch.

If anyone knows an existing extension capable of doing this, please let me know!

Twitter: @kevingaudin

SEBBANE Alexandre

Wednesday 01 June 2011 1:28:23 pm

Hello,

 

 i took this extension because the exemple handler that jerome put in it  ,is an RSSHandler ...

you have jsut to verify and add your fields ...

 

Alex

Paris, France