Forums / Setup & design / Display some pages in pure XML
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__5http://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
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?
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.