Saturday 25 September 2010 1:14:11 am
I'm not sure if it's exactly what you are asking, but I think what you want to do is a seperate fetch per section... assuming that each section is a different node and all of the contents for that section are in the subtree of that node. There are other ways of doing it... like doing one tree fetch on the parent of the sections - but if you care about sorting the output into the different sections and having some sort of balance between the number of items per section, then I think the most efficient way of doing it is seperate fetches and then putting the output together whatever way you want. Of course, this depends on your site structure... if you have everything dumped in one folder - or the content all over the place randomly, then - I guess you would have to still do multiple fetches with an attribute filter on whatever attribute determines what section the object belongs to. Of course, then cache it per section so that the overhead of the fetches is minimized.
Certified eZPublish developer
http://ez.no/certification/verify/396111
Available for ezpublish troubleshooting, hosting and custom extension development: http://www.leidentech.com
|