Re: Advice/opinion requested on page section lineup
| From: | Burhan Khalid | Date: | Mon, 14 Feb 2005 12:36:46 +0000 |
| Subject: | Re: Advice/opinion requested on page section lineup | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-208640@lists.php.net to get a copy of this message | ||
Alp wrote:
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,,,The first step would be to store the weight value in your database (or wherever) and link it to your modules (or content) that you want ordered. A very spartan table like : CREATE TABLE
d-order (id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
nid INT,
oid TINYINT);
Where nid is a foreign key linked to your nodes table, and oid is your order id (the placement order) would work.
Simply SELECT nid,oid FROM d-order ORDER BY oid; will get you a listing of what module will go where, from light to heavy (top to down)
I think you can take it from here :)