Display some pages in pure XML

Author Message

Christian Johansen

Monday 10 April 2006 1:34:00 am

I need to generate some of my content in pure xml to export it to a flash movie. I cannot use the RSS export because it is too simplified... Is there any way I can do this? (ie - I need to write my own template that generates XML, and that means my pagelayout can not be involved)

Ɓukasz Serwatka

Monday 10 April 2006 1:41:07 am

Hi,

Look at this topics:
http://ez.no/community/forum/general/dynamic_flash_menu/re_dynamic_flash_menu__5
http://ez.no/community/forum/developer/rss_export_and_flash/re_rss_export_and_flash__8

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Christian Johansen

Monday 10 April 2006 6:27:59 am

thanks, I have it working now except for one detail... In the other thread you said "You will have to add MIME header in /kernel/layout/set.php file." - I looked at that file but I have no idea where to do that - can you be a little more specific?

Christian Johansen

Wednesday 12 April 2006 10:06:13 am

For those of you who care I wrote a simple php-script that fetches the ez-url and prints out its content after having set the correct mime-type. Mime-types really feels like something that should be possible to set from the template:

{*?template content-type='application/xml' charset='utf8'?*}

This should be possible to do in each pagelayout. Maybe something to consider for eZ 4.0?

Tobias Adam

Friday 21 April 2006 2:46:22 am

Hi, I've got the same problem that I want to create a pure XML output of a node. But I also have to adjust the MIME-Type of this output file, which is set by default to "text/html".

Lukasz Serwatka said: "You will have to add MIME header in /kernel/layout/set.php file."

Can anybody help me how to do this? The set.php content is just letters to me.

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 19:34:54
Script start
Timing: Jan 18 2025 19:34:54
Module start 'layout'
Timing: Jan 18 2025 19:34:54
Module start 'content'
Timing: Jan 18 2025 19:34:55
Module end 'content'
Timing: Jan 18 2025 19:34:55
Script end

Main resources:

Total runtime0.7792 sec
Peak memory usage4,096.0000 KB
Database Queries65

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 587.9141152.6250
Module start 'layout' 0.00600.0037 740.539139.4609
Module start 'content' 0.00960.7685 780.0000591.4844
Module end 'content' 0.77820.0011 1,371.484412.4766
Script end 0.7792  1,383.9609 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.4260160.0002
Check MTime0.00130.1709160.0001
Mysql Total
Database connection0.00120.156610.0012
Mysqli_queries0.729693.6315650.0112
Looping result0.00060.0716630.0000
Template Total0.746395.820.3732
Template load0.00220.278720.0011
Template processing0.744295.496520.3721
Template load and register function0.00010.018610.0001
states
state_id_array0.00080.099210.0008
state_identifier_array0.00120.158220.0006
Override
Cache load0.00190.2424200.0001
Sytem overhead
Fetch class attribute can translate value0.00050.067230.0002
Fetch class attribute name0.00100.128160.0002
XML
Image XML parsing0.00080.107330.0003
class_abstraction
Instantiating content class attribute0.00000.001560.0000
General
dbfile0.00070.0915180.0000
String conversion0.00000.001240.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
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 17
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs