Objects with XML file extension

Author Message

paul bolger

Sunday 04 May 2008 5:07:02 am

I need to output instances of an object with an .xml file extension so that JW Player can use them as a playlist. The now deprecated PDF module used to output objects with a .pdf extension. How would one go about making a new module to output with an xml extension? Or is there a simpler way?

regards
Paul Bolger

Paul Bolger

Maxime Thomas

Sunday 04 May 2008 11:34:07 pm

Hi Paul,

You can do your own extension with a module and a function.
To produce XML, you have two ways to do this :
- you can use a template, so you must use the layout set function.
- you can produce xml directly in your module, using SimpleXML or whatever.

Here's the documentation :
http://ez.no/doc/ez_publish/technical_manual/4_0/reference/modules/layout

And an excellent article on how design extensions for eZpublish.
http://ez.no/developer/articles/an_introduction_to_developing_ez_publish_extensions

Cheers !

Maxime Thomas
maxime.thomas@wascou.org | www.wascou.org | http://twitter.com/wascou

Company Blog : http://www.wascou.org/eng/Company/Blog
Technical Blog : http://share.ez.no/blogs/maxime-thomas

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