CMS Question

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
wizzard81
Forum Commoner
Posts: 66
Joined: Wed Jan 15, 2003 6:05 am
Location: Belgium
Contact:

CMS Question

Post 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.
Kedo
Forum Newbie
Posts: 6
Joined: Tue Nov 30, 2004 12:04 am
Location: Cologne, Germany
Contact:

Post 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 ;)
User avatar
dull1554
Forum Regular
Posts: 680
Joined: Sat Nov 22, 2003 11:26 am
Location: 42:21:35.359N, 76:02:20.688W

Post 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
wizzard81
Forum Commoner
Posts: 66
Joined: Wed Jan 15, 2003 6:05 am
Location: Belgium
Contact:

Post by wizzard81 »

Thanks.

Thats life kedo the more you want, the more work you will have :)
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post 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 ;)
Post Reply