Forums / Developer / New datatype RSS import

New datatype RSS import

Author Message

Xavier Dutoit

Friday 26 January 2007 8:25:07 am

This is the place to discuss about this new datatype : http://ez.no/community/contribs/datatypes/rss_import

The RSS imports definition are handled outside of the standard content system (nodes, objects...). This datatype allows you to manage your rss feeds imports directly from within a regular content object.

It's just a more user friendly interface, all the work is still done by the standard RSS import interface

We needed to manage a news section, with lots of different news sources, each of them with a rss feed automatically adding news items (and stored as children of that source).

Doing that with the current interface is a real pain :
1) create the node of class link (source) under the right category in the news section,
2) go to rss menu,
3) create a new rss import with the same name than the link you just created
4) change the type of the content class for the news item class (no way I want to create folders, as offered by default)
5) set the right attributes for that class,
6) browse the destination node to pick up the link you just created
7) find again the url of the rss you had on your clipboard at 1), but since you had too many manipulations in the meantime, you lost it
8) Save the rss import

With the new rssfeed datatype added on the link class as a new attribute, you just put the rss address at the same time than you create the link object and that's it.
It creates the import in the background (points 2 to 8).

http://www.sydesy.com

Xavier Dutoit

Friday 26 January 2007 8:27:51 am

Please provides me feed-back if you've tested it on a 3.9

Please tell me if the doc is clear enough.

X+

http://www.sydesy.com

Paul Wilson

Tuesday 20 February 2007 2:16:02 pm

Hi Xavier,

I tried on 3.9.0, but no success yet. Extension enabled, cache cleared, but the datatype does not appear.

I suggest that it would be easier to have a zip file for download rather than pubsvn link.

Also, when downloading files from pubzvn, one file downloads as .htm rather than .tpl. Perhaps this happened because I was downloading manually. Anyway, it was the file:

rssfeed\design\standard\templates\content\datatype\view\ezrssfeed

Hope this helps

Regards

- Paul

EDIT/UPDATE: I sorted it out. Yes, this extension seems to work properly in EZ 3.9.0. More feedback to follow.

eZ debug

Timing: Jan 19 2025 03:15:24
Script start
Timing: Jan 19 2025 03:15:24
Module start 'content'
Timing: Jan 19 2025 03:15:25
Module end 'content'
Timing: Jan 19 2025 03:15:25
Script end

Main resources:

Total runtime0.8670 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.0076 588.9453180.8438
Module start 'content' 0.00760.7471 769.7891552.4922
Module end 'content' 0.75470.1123 1,322.2813332.7578
Script end 0.8669  1,655.0391 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00470.5383210.0002
Check MTime0.00180.2044210.0001
Mysql Total
Database connection0.00100.113610.0010
Mysqli_queries0.790291.13411940.0041
Looping result0.00160.18781920.0000
Template Total0.835196.320.4175
Template load0.00300.344020.0015
Template processing0.832195.968020.4160
Template load and register function0.00010.011110.0001
states
state_id_array0.00080.089310.0008
state_identifier_array0.00110.128320.0006
Override
Cache load0.00260.3006350.0001
Sytem overhead
Fetch class attribute can translate value0.00170.193530.0006
Fetch class attribute name0.00140.158950.0003
XML
Image XML parsing0.00260.300330.0009
class_abstraction
Instantiating content class attribute0.00000.001360.0000
General
dbfile0.00540.6187330.0002
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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 15
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs