How to exclude the embedded <object id=> from the related object lists ?

Author Message

Xavier Dutoit

Sunday 13 March 2005 4:53:40 am

Hi,

I use the object relations both to list related objects and to embed them into xmldata fields (<object id=xx>). However, on the list of related objects, I don't want to display the embedded objects, as they are already somewhere else into the page.

Is this an easy way to get the list of all the objects embedded into a xmlfield attribute, so I can section-exclude them from the object related list ?

Thanks in advance,

Xavier

http://www.sydesy.com

Jan Borsodi

Wednesday 16 March 2005 12:19:32 am

Unfortunately there is no way to do this now. There is no way to extract a list of embedded objects from the XML fields.

The only way around this would be to make an operator that reads the RAW XML and traverses the XML structure itself to find the embed tags.

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

Xavier Dutoit

Thursday 17 March 2005 9:10:22 am

Thanks for the info. I'm going to dig into the xml libraries ez provides and hopefully I'll end up uploading an operator on the contrib zone.

X+

http://www.sydesy.com

Xavier Dutoit

Monday 23 May 2005 1:58:46 am

For the record: that's what I did. Extenstion getobjects, both in pubsvn and http://www.ez.no/community/contribs/template_plugins/getobjects_extension

X+

http://www.sydesy.com

Paul Forsyth

Monday 23 May 2005 2:44:22 am

Thats a very nice extension! It would be nice to get that functionality into the kernel.

paul

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 19 2025 23:46:58
Script start
Timing: Jan 19 2025 23:46:58
Module start 'layout'
Timing: Jan 19 2025 23:46:58
Module start 'content'
Timing: Jan 19 2025 23:46:59
Module end 'content'
Timing: Jan 19 2025 23:46:59
Script end

Main resources:

Total runtime0.8468 sec
Peak memory usage4,096.0000 KB
Database Queries65

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0066 589.6406152.6875
Module start 'layout' 0.00660.0032 742.328139.5078
Module start 'content' 0.00990.8357 781.8359592.0313
Module end 'content' 0.84560.0012 1,373.867212.0781
Script end 0.8468  1,385.9453 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.3944160.0002
Check MTime0.00140.1606160.0001
Mysql Total
Database connection0.00110.135310.0011
Mysqli_queries0.784692.6461650.0121
Looping result0.00080.0917630.0000
Template Total0.814996.220.4074
Template load0.00240.281920.0012
Template processing0.812595.943420.4062
Template load and register function0.00010.014610.0001
states
state_id_array0.00120.142510.0012
state_identifier_array0.00120.140320.0006
Override
Cache load0.00200.2332240.0001
Sytem overhead
Fetch class attribute can translate value0.00090.104730.0003
Fetch class attribute name0.00190.222470.0003
XML
Image XML parsing0.00130.155730.0004
class_abstraction
Instantiating content class attribute0.00000.002890.0000
General
dbfile0.00100.1170230.0000
String conversion0.00000.001040.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
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 16
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs