How to get XML output for all the contents

Author Message

Satheesh R

Thursday 13 March 2008 12:05:12 am

Hello All,

Kindly give some guidance to achieve the followings,

1. I'm using eZ4.0, i want to know how to get all the eZ contents (Which are posted/uploaded in ADMIN side including Images and all type of files) in a XML format(XML output).
2. The thing is i have to pass those information to FLASH (is it achievable ..?).

kindly guide me
Thanks in advance

Regards
Shr

Thanks and Regards
R Satheesh

Bruce Morrison

Thursday 13 March 2008 12:34:47 am

Hi Satheesh

Basically you want to :
# create a layout for the XML output (layout.ini)
# overwrite the "Content-Type" header for this layout so that the ouput is presented as XML (layout.ini)
# create templates to produce the desired output

I wrote about this here
http://suffandnonsense.blogspot.com/2007/05/easy-web-services-with-ez-publish.html While it doesn't cover what you are asking 100% is should give you enough to do what you want.

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Satheesh R

Thursday 13 March 2008 1:40:05 am

Hi Bruce,
Thanks for the reply.

Yes i read your article already and i tried the followings

1. Added the following code in <b> layout.ini </b>

    	[xml]
	PageLayout=xml_pagelayout.tpl
	ContentType=text/xml
 

and i created a override file for pagelayout which is <b> xml_pagelayout.tpl </b> (i dunno wheather it is needed or not) which is loaded with sample xml tags

2. With the help of one earlier forum i have changed the article.tpl file in full XML format (Article - Full view for flash step)

But i dunno how to make it run successfully

Kindly explain a bit more about this point
# create templates to produce the desired output

Thanks and Regards
R Satheesh

Ekkehard Dörre

Thursday 13 March 2008 6:40:02 am

Hi,

look here:
http://projects.ez.no/ggxmlview

and here:
http://projects.ez.no/ggxmlview/forum/general/xml_design_extension#msg8456

Greetings ekke

http://www.coolscreen.de - Over 40 years of certified eZ Publish know-how: http://www.cjw-network.com
CJW Newsletter: http://projects.ez.no/cjw_newsletter - http://cjw-network.com/en/ez-publ...w-newsletter-multi-channel-marketing

Satheesh R

Sunday 16 March 2008 9:21:50 pm

Hi Ekkehard Dörre,

Thanks for the reply, i'll try to implement it.

Thanks and Regards
R Satheesh

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 31 2025 06:01:07
Script start
Timing: Jan 31 2025 06:01:07
Module start 'layout'
Timing: Jan 31 2025 06:01:07
Module start 'content'
Timing: Jan 31 2025 06:01:07
Module end 'content'
Timing: Jan 31 2025 06:01:07
Script end

Main resources:

Total runtime0.0188 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 588.2656151.2266
Module start 'layout' 0.00510.0024 739.492236.6797
Module start 'content' 0.00740.0095 776.171994.3125
Module end 'content' 0.01690.0018 870.484437.9922
Script end 0.0187  908.4766 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002513.4486140.0002
Check MTime0.00137.0064140.0001
Mysql Total
Database connection0.00084.260010.0008
Mysqli_queries0.002211.476130.0007
Looping result0.00000.075010.0000
Template Total0.00147.210.0014
Template load0.00105.400010.0010
Template processing0.00031.668710.0003
Override
Cache load0.00073.806310.0007
General
dbfile0.003619.223580.0005
String conversion0.00000.036940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

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

Time used to render debug report: 0.0001 secs