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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 02:09:38
Script start
Timing: Jan 18 2025 02:09:38
Module start 'layout'
Timing: Jan 18 2025 02:09:38
Module start 'content'
Timing: Jan 18 2025 02:09:40
Module end 'content'
Timing: Jan 18 2025 02:09:40
Script end

Main resources:

Total runtime1.4304 sec
Peak memory usage4,096.0000 KB
Database Queries61

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 588.0156152.6250
Module start 'layout' 0.00630.0037 740.640639.4531
Module start 'content' 0.01001.4193 780.0938557.1797
Module end 'content' 1.42930.0012 1,337.273412.1563
Script end 1.4304  1,349.4297 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.2414160.0002
Check MTime0.00150.1044160.0001
Mysql Total
Database connection0.00080.054710.0008
Mysqli_queries1.295590.5668610.0212
Looping result0.00060.0403590.0000
Template Total1.324592.620.6622
Template load0.00220.154520.0011
Template processing1.322292.435420.6611
Template load and register function0.00010.005510.0001
states
state_id_array0.00080.054710.0008
state_identifier_array0.00080.053920.0004
Override
Cache load0.00190.1329410.0000
Sytem overhead
Fetch class attribute can translate value0.00050.033020.0002
Fetch class attribute name0.00130.094060.0002
XML
Image XML parsing0.00070.052220.0004
class_abstraction
Instantiating content class attribute0.00000.001080.0000
General
dbfile0.00090.0601220.0000
String conversion0.00000.000740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
1content/datatype/view/ezxmltags/li.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/li.tplEdit templateOverride template
1content/datatype/view/ezxmltags/ul.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/ul.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 19
 Number of unique templates used: 8

Time used to render debug report: 0.0001 secs