How to import images

Author Message

Ant Ch

Monday 01 June 2009 12:09:10 pm

Hello,

I have a question. I want to import RSS news to Ezpublish sistem but how can I get images from <description> section? If there is an image in the RSS news it doesnt import to database.

SEBBANE Alexandre

Monday 01 June 2009 2:55:20 pm

Do you know a rss which have image in description tag ?

becaus efor me it is not alowed by the rfc : the only way to have image in rss is by using the enclosure tag.

Paris, France

Gaetano Giunta

Tuesday 02 June 2009 1:17:09 am

Unfortunately at the moment the rss imort in eZP does not support images from the 'enclosure' tag...

Principal Consultant International Business
Member of the Community Project Board

kracker (the)

Tuesday 02 June 2009 1:26:45 am

Which is so freaking dumb for eZ Publish not to support advanced rss import!

In other news you or anyone else can start by modifying a copy of the file cronjobs/rssimport.php to provide this functionality yourself.

I've seen this done before I think ...

Cheers,
<i>//kracker

Dirtball : Batter Swing ...</i>

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

Ant Ch

Tuesday 02 June 2009 2:05:30 am

For example this feed has images in description http://rss1.smashingmagazine.com/feed/
Is there the way to import...

Martin Grønbekk Moen

Wednesday 10 August 2011 3:19:16 am

Hi,

Has anyone here created the mentioned import of an image from an 'enclosure' tag? I'm looking for a way to do this as well, and was wondering if you have some code to share on how to accomplish this :)

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 29 2025 13:31:47
Script start
Timing: Jan 29 2025 13:31:47
Module start 'layout'
Timing: Jan 29 2025 13:31:47
Module start 'content'
Timing: Jan 29 2025 13:31:47
Module end 'content'
Timing: Jan 29 2025 13:31:47
Script end

Main resources:

Total runtime0.0125 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0043 588.0078151.1953
Module start 'layout' 0.00430.0023 739.203136.6328
Module start 'content' 0.00670.0045 775.835994.0938
Module end 'content' 0.01110.0013 869.929733.9922
Script end 0.0124  903.9219 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002016.1815140.0001
Check MTime0.00107.7500140.0001
Mysql Total
Database connection0.00086.637110.0008
Mysqli_queries0.002117.183730.0007
Looping result0.00000.160310.0000
Template Total0.00108.210.0010
Template load0.00086.291610.0008
Template processing0.00021.834410.0002
Override
Cache load0.00053.922710.0005
General
dbfile0.00118.448780.0001
String conversion0.00000.047740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs