Forums / Setup & design / How do I turn news articles into an RSS feed?

How do I turn news articles into an RSS feed?

Author Message

Hilary Boyce

Wednesday 02 January 2008 7:52:29 am

I want to let visitors to a site subscribe to an RSS feed for the press releases. I have looked at the RSS page in setup, documentation on this site and books I have but am totally confused as to how to set this up. Please can someone point me in the right direction, Unfortunately I am a newbie when it comes to RSS.

TIA

Egil Fujikawa Nes

Wednesday 02 January 2008 5:48:16 pm

Hello Hilary,

Hope I didn't miss understand your question. To setup a RSS export you only need to access your eZ Publish siteadmin interface.

Go to: <b>Setup -> RSS -> New export</b>

Fill out information about your RSS feed. Pay specially notice to the <i>“Site URL”</i> parameter that will be used for all links in your RSS export. Also pay notice to that you need to click the <i>“set”</i> button after changing class that you want to export before the <i>Title</i> and <i>Description</i> drop-down box updates.

By default <i>Anonymous Users</i> don't have access to read RSS feeds. You will need to update the policy for the <i>Anonymous role</i> to access the module <i>“RSS”</i> and function <i>“feed”</i>

Here is an example that shows how we been exporting the Article class in our sub-folder News:

http://www.webdealhosting.com/rss/feed/webdeal-news

Hope this could help you answering your question Hilary.

Best regards
Egil Fujikawa Nes

Try out Free eZ Publish 4.0 Trial Hosting for 14 days:
http://webdealhosting.com/ez-publish-trial-hosting

High quality eZ Publish Hosting since 2001!

Hilary Boyce

Friday 04 January 2008 2:26:37 am

Thank you Egil,

your reply was a big help and I have now managed to create a news feed, which I can access if I put the url directly into the address bar.

However this rss feed is not being picked up by the link.tpl and turned into a link. Instead I am getting a reference to a dummy rss feed that was already set up called my_feed. I have deleted this on the setup > rss but it is still (despite clearing caches several times!) showing in the links:

<link rel="Alternate" type="application/rss+xml" title="RSS" href="/eng/rss/feed/my_feed" />
<link rel="Alternate" href="/eng/layout/set/print/rss/feed/my_feed" media="print" title="Printable version" />

How do I lose the 'my_feed' and have my news one shown instead? ( I am working with version 4)

André R.

Friday 04 January 2008 4:17:52 am

I guess you use the websiteinterface or ezflow, in that case login to your front page and click site settings to change the rss url among other things.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Hilary Boyce

Friday 04 January 2008 6:26:38 am

Thank you Andre - that has solved the problem.

Hilary Boyce

Wednesday 06 February 2008 2:31:50 am

Hi

Changing the rss feed in the site settings is great for one rss feed. But what about when you have several of them (as the ez.no site does). Is it necessary to edit/override link.tpl or is there another way?

André R.

Wednesday 06 February 2008 2:43:48 am

Then you need to custimize ezwebin ( override templates with your own design extension would be the prefered way).

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

eZ debug

Timing: Jan 30 2025 21:37:14
Script start
Timing: Jan 30 2025 21:37:14
Module start 'content'
Timing: Jan 30 2025 21:37:14
Module end 'content'
Timing: Jan 30 2025 21:37:14
Script end

Main resources:

Total runtime0.2982 sec
Peak memory usage8,192.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0075 588.0625370.2734
Module start 'content' 0.00750.0146 958.33591,009.5781
Module end 'content' 0.02210.2760 1,967.91413,897.6641
Script end 0.2981  5,865.5781 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00481.6201200.0002
Check MTime0.00140.4650200.0001
Mysql Total
Database connection0.00090.315910.0009
Mysqli_queries0.196365.85191410.0014
Looping result0.00160.53911390.0000
Template Total0.275592.410.2755
Template load0.00090.309510.0009
Template processing0.274692.089210.2746
Override
Cache load0.00060.215010.0006
Sytem overhead
Fetch class attribute can translate value0.00170.583910.0017
XML
Image XML parsing0.00030.084910.0003
General
dbfile0.00872.9175200.0004
String conversion0.00000.002430.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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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