Solved

Modular CMS design

Posted on 2006-06-12
3
445 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Introduction Many web sites contain image galleries; a common design for these galleries includes a page with a collection of thumbnail images.  You can click on each of the thumbnail images to see the larger version of the image.  This is easily i…
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…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
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.

760 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now