rss import and multiple feeds

Author Message

Artturi Markko

Saturday 13 January 2007 1:38:06 pm

Hello,

I'm planning a future ez site and I'd like to define a sort of "Latest News" box filled with news from several rss feeds.

Is that easily feasible with the existing Feed module of ez components ? is there an example/documentation of how this is put in practice ?

Thanks in advance,

Artturi

Betsy Gamrat

Saturday 13 January 2007 6:40:50 pm

Artturi,

The RSS feed module works great. The documentation is at:
http://ez.no/doc/ez_publish/technical_manual/3_8/reference/modules/rss

I did create a custom class to receive the feed, and simple templates to display the data.

<b>rss_full.tpl</b>

<h1>{$node.name}</h1>

{if $node.object.data_map.item_author.has_content}
  by {attribute_view_gui attribute=$node.object.data_map.item_author}
  <br />
{/if}
<em>Date:</em>{attribute_view_gui attribute=$node.object.data_map.item_pub_date}<br /><br />
{$node.object.data_map.item_description.content}
<br />
<br />
<strong><a href="{$node.object.data_map.item_link.content}" target="_blank">Click for full text</a></strong>
<hr />
<h3>Source</h3>
<a href="{attribute_view_gui attribute=$node.object.data_map.channel_link}" target="_blank">
{attribute_view_gui attribute=$node.object.data_map.channel_title}</a><br />
{attribute_view_gui attribute=$node.object.data_map.channel_description}

Artturi Markko

Sunday 14 January 2007 3:18:25 am

Thanks for your help.

Things are still a lit obscure for me right now.

I've tried to define an RSS import in "Setup/syndication" but it's listed as inactive. I've runned the cronjob script but it hasn't changed anything.

Artturi

Betsy Gamrat

Sunday 14 January 2007 6:42:27 am

Artturi,

There is a checkbox at the bottom of the setup options which allows you to make the feed active.

It sounds like you're close.

:)

Artturi Markko

Monday 15 January 2007 1:06:35 pm

Thanks,

it was quite silly in fact : I just needed to click on "update" on the right of the feed link !

So, it works quite well. Now I have just to find a way to clean old content but that is probably mentionned somewhere.

Regards,

Artturi

Betsy Gamrat

Thursday 18 January 2007 7:57:36 am

:)

http://ez.no/community/forum/general/best_way_to_removing_old_rss_files/re_best_way_to_removing_old_rss_files__5

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 31 2025 03:30:34
Script start
Timing: Jan 31 2025 03:30:34
Module start 'layout'
Timing: Jan 31 2025 03:30:34
Module start 'content'
Timing: Jan 31 2025 03:30:35
Module end 'content'
Timing: Jan 31 2025 03:30:35
Script end

Main resources:

Total runtime0.0254 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.0058 588.1328151.2109
Module start 'layout' 0.00580.0037 739.3438220.6875
Module start 'content' 0.00950.0144 960.03131,001.9141
Module end 'content' 0.02390.0015 1,961.945337.9922
Script end 0.0253  1,999.9375 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002710.5960140.0002
Check MTime0.00114.2589140.0001
Mysql Total
Database connection0.00072.921410.0007
Mysqli_queries0.00228.496230.0007
Looping result0.00000.043210.0000
Template Total0.00114.210.0011
Template load0.00083.067010.0008
Template processing0.00031.099710.0003
Override
Cache load0.00051.916610.0005
General
dbfile0.00249.294280.0003
String conversion0.00000.034840.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