Re: Advice/opinion requested on page section lineup

From: Date: Sun, 13 Feb 2005 17:17:30 +0000
Subject: Re: Advice/opinion requested on page section lineup
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-208603@lists.php.net to get a copy of this message
Thanks Burhan, That's almost what I exactly want to do. The question is "how do I start doing that" which methodlogy, which structure, etc,,, Alp "Burhan Khalid" <phplist@meidomus.com> wrote in message news:420F0023.1070509@meidomus.com... > 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

« previous php.general (#208603) next »