Display some pages in pure XML

Display some pages in pure XML

Monday 10 April 2006 1:34:00 am - 4 replies

Author Message

Ɓ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.

You must be logged in to post messages in this topic!

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