Forums / Setup & design / Infobox behaviour modification

Infobox behaviour modification

Author Message

Sander van den Akker

Friday 01 August 2008 7:07:10 am

Currently I'm working on a new project where I took the new website interface design as a starting point. By default this design displays child objects of the infobox class on the right side. I want to modify this behaviour but I'm not sure what is the best way to do so.

I would like to display all infoboxes in the current path, so not just the child infobox objects of the current node, but also child infobox objects of it's parent, and further ancestors.

Should I iterate through the $module_result.path variable and fetch infobox children for each element or is there a better way to accomplish this?

And, according to the documentation a content/list_count fetch does not support multiple parent_node_id's like a content/list fetch does. Is that correct?

Thanks for any help in advance!

eZ Publish certified developer
http://auth.ez.no/certification/verify/392313

Andrew Duck

Wednesday 17 September 2008 12:29:19 pm

Hi Sander,

You could iterate through and run multiple fetches as you have mentioned, another alternative is to start your fetch higher up the node tree and use the depth parameter to search deeper into the tree looking for infoboxes.

Each approach obviously has performance issues associated with it, especially as you increase the total number of objects in the tree, searching with depth starts to become hazardous.

If this happens to be the case then you would potentially look at writing a simple module fetch to run your own optimised sql fetch for the appropriate infoboxes. Although this may not be an issue, depending on the size of the node tree.

Regards,
Andrew.

Andrew Duck, Executive Director, Quiqcorp Limited
eZ Certified Developer and Trainer.
Member of the Community Project Board
http://quiqcorp.com | http://twitter.com/andrewduck