Overriding RSS Export format

Overriding RSS Export format

Friday 24 October 2008 1:03:33 pm - 1 reply

Author Message

Gaetano Giunta

Friday 24 October 2008 1:53:18 pm

One option you have is to build rss feeds by creating templates.

It will take a while, compared to the standard rss functionality, but it can be done quite easily:
- use the layout/set module to set up an xml http content-type and xml pagelayout (1 template)
- define a node that will be rss "root". full_rss view for it iterates on first X children (or on related objects), sorted by reverse update time, and displays them in line_rss mode (total: 2 templates)
- create url-aliases to have nicer urls for your rss feeds
- make sure that your full_rss view mode is cached (CachedViewModes in site.ini) for good perfs

Principal Consultant International Business
Member of the Community Project Board

You must be logged in to post messages in this topic!

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