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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.