Solved

Modular CMS design

Posted on 2006-06-12
3
451 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

Suggested Solutions

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to count occurrences of each item in an array.

733 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