Solved

Modular CMS design

Posted on 2006-06-12
3
449 Views
Last Modified: 2008-02-01
Hi Experts,

Do any of you have any experience with developing modular CMS systems? By this I mean that many people have stuck a rich text editor into their site, defined the tables that hold there content and there away. Problem is different situations require the data to be stored in different structures. i.e. the data structure holding a sites news articles will be quite different from data for say pages listing various courses a company provides.

Now I would have no problem developing the little scripts to display content of both of these types and stick a simple admin side to it for users to ammend the data. However this is always by hard coding the site and its admin system.

What I am looking for is ideas about how I would even begin to go about making a CMS system modular so that I could just simply add a new means of displaying and administering data of a set structure without having to completely change the admin system to allow pages of this type to be added/edited/removed. And additionally so that I wouldnt have to hardcode the website to output these pages.


Sorry, I know this make little sense. Ok, lets say I have a site with the following sections:

- About Us: Section of standard content pages
- News: News section.
- Buyers Guide: List of reccomended companies sortable by what they sell.

Ok, and I have an admin system to allow for the addition of pages in each of the sections. Now lets say I wanted to add links directory section sortable by catagory. I would have to change the admin system to allow addition of new links and hardcode the section to display the links pages.

What I am after is a way of making the admin side and the site modular so that I can just pick and choose the modules that make up a site.

God I know that make no sense, but if you have a slight idea of what I am babbeling about please help me. I think I am basically looking for some sort of methodology about how to develop modular CMS systems.

Thanks Chris.
0
Comment
Question by:icb01co2
3 Comments
 
LVL 6

Accepted Solution

by:
pritaeas earned 190 total points
ID: 16885723
The way I've used something similar:

1. Create one index.php that can respond to index.php?module=XXX
2. For each module there is a different class for example that can handle it's own table, the view, and the edit part. Include that class and use it.
3. Use templates (smarty for example). Each module uses the same header and footer template, but the content is different for each module.

hth, pritaeas
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
The viewer will learn how to dynamically set the form action using jQuery.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question