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

eZ debug

Timing: Jan 18 2025 16:20:52
Script start
Timing: Jan 18 2025 16:20:52
Module start 'content'
Timing: Jan 18 2025 16:20:53
Module end 'content'
Timing: Jan 18 2025 16:20:53
Script end

Main resources:

Total runtime0.8319 sec
Peak memory usage4,096.0000 KB
Database Queries194

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 587.7344180.8281
Module start 'content' 0.00630.6937 768.5625548.7813
Module end 'content' 0.70000.1319 1,317.3438336.7734
Script end 0.8318  1,654.1172 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.4751210.0002
Check MTime0.00150.1761210.0001
Mysql Total
Database connection0.00090.107110.0009
Mysqli_queries0.762591.66421940.0039
Looping result0.00200.24621920.0000
Template Total0.807297.020.4036
Template load0.00210.254120.0011
Template processing0.805096.774220.4025
Template load and register function0.00020.019810.0002
states
state_id_array0.00070.085010.0007
state_identifier_array0.00070.089620.0004
Override
Cache load0.00180.2112310.0001
Sytem overhead
Fetch class attribute can translate value0.00130.156430.0004
Fetch class attribute name0.00100.118440.0002
XML
Image XML parsing0.00100.124030.0003
class_abstraction
Instantiating content class attribute0.00000.000940.0000
General
dbfile0.00230.2781280.0001
String conversion0.00000.000930.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 19
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs