Forums / Developer / Overriding RSS Export format
Lando C
Friday 24 October 2008 1:03:33 pm
From what I can tell, when using the built in eZ rss export of content, the resulting XML that is output is built by 'ezrssexport.php' (as opposed to an eZ template doing the formatting).
Is this correct or am I looking in the wrong spot?
Basically, I would like to format the export to my own standards without touching any kernel files. Is this possible?
Thanks!
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