Link to external XML

Author Message

Olivier Moreau

Tuesday 12 August 2008 5:35:00 am

Hi all,

I'm looking for a method to link to external XML. I'd like to create (or use an existing) classe where an attribute is URL and another XML block. I then enter the URL and the external XML found at that URL is copied in the XML block for further display in my page.

Any help much appreciated

Sebastiaan van der Vliet

Tuesday 12 August 2008 9:12:39 am

Hi Olivier,

We have developed a datatype which creates a dropdown/listbox from an external XML file. By selecting an entry in this dropdown, the user stores the unique identifier from the XML file. This identifier can then be used to fetch the complete record from the XML file, combining it with the information stored in the content object.

Maybe you could use the same approach in your project? Contact me at info[at]contactivity[//dot//].com if you need the code (ezp version 4).

Kind regards,
Sebastiaan

Certified eZ publish developer with over 9 years of eZ publish experience. Available for challenging eZ publish projects as a technical consultant, project manager, trouble shooter or strategic advisor.

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 11:33:41
Script start
Timing: Jan 18 2025 11:33:41
Module start 'layout'
Timing: Jan 18 2025 11:33:41
Module start 'content'
Timing: Jan 18 2025 11:33:42
Module end 'content'
Timing: Jan 18 2025 11:33:42
Script end

Main resources:

Total runtime1.2325 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0049 587.9063152.6250
Module start 'layout' 0.00490.0037 740.531339.4453
Module start 'content' 0.00861.2224 779.9766531.9609
Module end 'content' 1.23100.0015 1,311.93758.1719
Script end 1.2325  1,320.1094 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.2425160.0002
Check MTime0.00120.0977160.0001
Mysql Total
Database connection0.00070.057510.0007
Mysqli_queries1.189496.5040540.0220
Looping result0.00060.0499520.0000
Template Total1.203297.620.6016
Template load0.00200.162420.0010
Template processing1.201297.458620.6006
Template load and register function0.00010.006810.0001
states
state_id_array0.00060.049310.0006
state_identifier_array0.00260.214920.0013
Override
Cache load0.00160.1333140.0001
Sytem overhead
Fetch class attribute can translate value0.00070.055820.0003
Fetch class attribute name0.00160.130540.0004
XML
Image XML parsing0.00110.086620.0005
class_abstraction
Instantiating content class attribute0.00000.000540.0000
General
dbfile0.00090.0767230.0000
String conversion0.00000.000740.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
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 10
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs