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.

eZ debug

Timing: Jan 18 2025 11:25:46
Script start
Timing: Jan 18 2025 11:25:46
Module start 'layout'
Timing: Jan 18 2025 11:25:46
Module start 'content'
Timing: Jan 18 2025 11:25:47
Module end 'content'
Timing: Jan 18 2025 11:25:47
Script end

Main resources:

Total runtime1.1034 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0067 587.9141152.6250
Module start 'layout' 0.00670.0039 740.539139.4609
Module start 'content' 0.01061.0912 780.0000535.5781
Module end 'content' 1.10190.0015 1,315.57818.1641
Script end 1.1033  1,323.7422 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.2903160.0002
Check MTime0.00130.1206160.0001
Mysql Total
Database connection0.00170.151210.0017
Mysqli_queries1.043594.5760540.0193
Looping result0.00060.0530520.0000
Template Total1.046094.820.5230
Template load0.00230.212620.0012
Template processing1.043694.583920.5218
Template load and register function0.00010.010210.0001
states
state_id_array0.00130.117310.0013
state_identifier_array0.00090.082720.0005
Override
Cache load0.00180.1653190.0001
Sytem overhead
Fetch class attribute can translate value0.00060.058320.0003
Fetch class attribute name0.00160.140540.0004
XML
Image XML parsing0.00100.093420.0005
class_abstraction
Instantiating content class attribute0.00000.000640.0000
General
dbfile0.00100.0893220.0000
String conversion0.00000.001040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 16
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs