Re: Advice/opinion requested on page section lineup

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux