Forums / Setup & design / How to exclude the embedded <object id=> from the related object lists ?
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
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+
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
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