RSS: importing the item's pubdate

Author Message

Pascal France

Tuesday 13 November 2007 4:59:37 pm

Hi,

I would like to import the pubdate of each item of this page:
http://www.f3c-cfdt.fr/actualites/dernieres-actualites/folder_summary_view?b_start:int=0

RSS page is:
http://www.f3c-cfdt.fr/actualites/dernieres-actualites/RSS

In the xml source code, we can see lines like that:

<item rdf:about="http://www.f3c-cfdt.fr/actualites/eds-en-campagne-electorale"> <title>EDS en campagne électorale</title> <link>http://www.f3c-cfdt.fr/actualites/eds-en-campagne-electorale</link> <description>Après un détour par le tapis vert, la campagne électorale se déroule sur l’ensemble des sites de l’entreprise. </description> <dc:publisher>No publisher</dc:publisher> <dc:creator>iberaud</dc:creator> <dc:rights></dc:rights> <dc:subject>Conseil-pub</dc:subject> <dc:subject>UFC</dc:subject> <dc:subject>Tracts/Affiches</dc:subject> <dc:date>2007-11-08T07:13:59Z</dc:date> <dc:type>Actualite</dc:type> </item>

Currently, whith my RSS import class I'm able to import these fields:

<title>EDS en campagne électorale</title>
<link>http://www.f3c-cfdt.fr/actualites/eds-en-campagne-electorale</link>
<description>Après un détour par le tapis vert, la campagne électorale se déroule sur l’ensemble des sites de l’entreprise. </description>

My question is: is there a way to import this one:
<dc:date>2007-11-08T07:13:59Z</dc:date>

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Heath

Wednesday 14 November 2007 3:17:00 am

Hello,

My what a large number of pascals we have here in the forum.

You will want to file an enhancement request in the issue tracker (please do this first)

I think it is possible to create this now fairly simply by doing the following.

Then if you need this feature now. You may wish to create a custom cronjob (ie: cronjob/bcdatedrssimport.php) and php class (ie: kernel/classes/bcdatedrssimport.php) to augment the existing base php class and cronjob with these to provide this custom functionality.

Cheers,
Heath

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

Pascal France

Wednesday 14 November 2007 5:39:07 pm

Hi Health,

Thanks for your reply. But unfortunately I'm not a developer, so I won't be able to create such a php class.

I'm going to fill in a request (this one: http://issues.ez.no/IssueView.php?Id=11930&activeItem=1).

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

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 19:36:54
Script start
Timing: Jan 18 2025 19:36:54
Module start 'layout'
Timing: Jan 18 2025 19:36:54
Module start 'content'
Timing: Jan 18 2025 19:36:54
Module end 'content'
Timing: Jan 18 2025 19:36:54
Script end

Main resources:

Total runtime0.0133 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0044 587.9375152.6250
Module start 'layout' 0.00450.0021 740.562539.4453
Module start 'content' 0.00660.0047 780.007893.3359
Module end 'content' 0.01130.0020 873.343834.3047
Script end 0.0133  907.6484 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002418.1998140.0002
Check MTime0.00118.0920140.0001
Mysql Total
Database connection0.00054.040610.0005
Mysqli_queries0.001813.630130.0006
Looping result0.00000.075310.0000
Template Total0.001611.910.0016
Template load0.00086.137110.0008
Template processing0.00085.685210.0008
Override
Cache load0.00064.528410.0006
General
dbfile0.00032.467880.0000
String conversion0.00000.043040.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