Page 1 of 1

CMS Question

Posted: Sun Dec 19, 2004 4:07 am
by wizzard81
Hello,

I'm working on a little CMS for my customers but i have a question. My customers can edit their webpages but i was wondering if you can do a combination in the editting pages with php code and html. So if a customer can change his welcome page is it also possible to place on the right side the newest products. I want my CMS to be very flexible but i don't know if this things are possible.

Posted: Sun Dec 19, 2004 5:09 am
by Kedo
Actually, it's possible. It's only a question of effort. The more flexible you want your CMS, the more work you'll have ;)

Posted: Sun Dec 19, 2004 5:18 pm
by dull1554
all you would have to do is query the database and select the newest row in the table, then print whatever you needed to show

Posted: Mon Dec 20, 2004 8:49 am
by wizzard81
Thanks.

Thats life kedo the more you want, the more work you will have :)

Posted: Mon Dec 20, 2004 3:49 pm
by timvw
you could look it in a oop-ish way, and think that a "page" is a collection of "boxes with info"

and then you simply need to add those boxes to your page... (perhaps want to pass also a x-position, y-position, width and height too)


now all you need to do is implement those modules/boxes ;)