Forums / Setup & design / Display some pages in pure XML

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.

eZ debug

Timing: Jan 19 2025 04:38:00
Script start
Timing: Jan 19 2025 04:38:00
Module start 'content'
Timing: Jan 19 2025 04:38:00
Module end 'content'
Timing: Jan 19 2025 04:38:01
Script end

Main resources:

Total runtime0.2252 sec
Peak memory usage4,096.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0072 590.1016180.8359
Module start 'content' 0.00720.0110 770.937597.9922
Module end 'content' 0.01820.2070 868.9297525.9297
Script end 0.2251  1,394.8594 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00381.7013200.0002
Check MTime0.00140.6281200.0001
Mysql Total
Database connection0.00090.405410.0009
Mysqli_queries0.149866.53801410.0011
Looping result0.00241.04601390.0000
Template Total0.205991.410.2059
Template load0.00100.453010.0010
Template processing0.204990.978210.2049
Override
Cache load0.00070.326310.0007
Sytem overhead
Fetch class attribute can translate value0.00100.453910.0010
XML
Image XML parsing0.00040.180310.0004
General
dbfile0.00472.0721200.0002
String conversion0.00000.002530.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0002 secs