Forums / Setup & design / RSS: importing the item's pubdate

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