Nikki,
I think you need to open the WebTop and fill the "Tree Position" field in
the Site Layout Model.
This field orders objects in the WebTop and so it will order data returned
by the <cfa_siteElementGetChildren> tag as well.
---
Stephane
Paris - FRANCE
Email: mailto:[EMAIL PROTECTED]
-----Original Message-----
From: Nikki Forshaw [mailto:[EMAIL PROTECTED]]
Sent: lundi 5 mars 2001 12:58
To: Spectra-Talk
Subject: sorting return from siteElementGetChildren...
Hi All,
My question is: Can I get my return from <cfa_siteElementGetChildren> to
order according to how the containers appear on the page?
Below is a really bad description (I can barely understand what I've
written!) of why I need this to happen... however, if you can make sense of
it, any ideas would really be welcome!
I have a page which has several containers on it. Each container is wrapped
in a table and each container has a publishing rule set to it. What I need
to do is only display the table wrapping the container if there is an object
in the container. I've managed to get most of this to work, my only problem
being that <cfa_siteElementGetChildren> does not return the containers in
the order that they are on the page itself.... This is making it very
difficult for me to know which tables to show as I loop through the
containerID's returned by <cfa_siteElementGetChildren> and write an array
with the id and an on/off value and then check against that when it comes
time to write the tables around the containers... the end result being that
if contiainer number 3 on my page is populated, it'll more likely show up in
container number 10's slot... this being because a containerID get's
assigned from the array to the container and because the id's returned from
<cfa_siteElementGetChildren> are not ordered according to the order in which
the containers initially appear on the page.
Thanks in advance,
Nikki
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/spectra_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.