Solved

Modular CMS design

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to count occurrences of each item in an array.

912 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

23 Experts available now in Live!

Get 1:1 Help Now