Alp wrote:
Hi Jochem,

Intention is to give a user the option of assigning "position" of a
"section" on the page, i.e:
First: sectA, then sectC, then sectE, then sectB and sectD.... or any other
order that is indicated by the user. So it is somewhat like top-of-page,
mid-of-page etc but with a numbering/precedence/sorting (can be named any)
system that populates the page according to the choice.
Roughly:
<--first section-->
<--second section-->
<--third section-->
<--fourth section-->
<--fifth section-->

Alp:

You can implement a weights system, similar to Drupal. In such a system, each item is given a weight -- the lighter the item floats to the top, and the heavier items sink to the bottom. Weights can range from anything (lets take -10 to 10 -- 0 being the default). 1 is "heavier" than 0, so any item with a weight of 1 sinks below any item with a weight < 1. -1 is lighter than 0, so it will float above both 0 and 1.

This type of system is good if you are not concerned with strict placing of items, since two items in the same weight category are simply stacked on top of each other.

Regards,
Burhan

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to