develop a CMS

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
cade
Forum Commoner
Posts: 55
Joined: Tue Jul 03, 2007 8:18 pm

develop a CMS

Post by cade »

how to develop cms having a lot of menus and submenus. I have develop the CMS for posting the content. And now I dont know how to develop the main category and subcategory.. Do you have any table structure or tutorial to share?
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post by s.dot »

Are you looking for help with setting up the database table(s) that pertain(s) to your CMS? Or for the coding and HTML of categories and subcategories?
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
cade
Forum Commoner
Posts: 55
Joined: Tue Jul 03, 2007 8:18 pm

Post by cade »

i'm looking for both. as well as Idea and concept. When I look into joomla or mambo, there is no multicategories option. Take a look at http://www.masmattagolf.com.my. They implementing multicategories
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post by superdezign »

I know that Drupal had categories and subcategories. I think if you use the DOM mixed with a parent-relationship type table, you should be fine. You just give all parent-less menu nodes a parent value of 0, and all sub categories a parent node corresponding to the parent id. Get all of the data from the database ordered by their parent, then construct it from there. Or, you could take the easy (though, less flexible) route of just making a categories table and a subcategories table. Only two levels, but you really shouldn't need anymore than that.
cade
Forum Commoner
Posts: 55
Joined: Tue Jul 03, 2007 8:18 pm

Post by cade »

could you elaborate in more details? Let me explain the abstract to you about my cms that i'm going to develop.

This CMS would create content. The content would be static content and usually people call it to build a page.
This page gonna have a title, content details (textarea), choose a language, and category. Everytime user post a new content, he would select the category, fill up the title, content, and select the language that he wants. Whenever the page is created, the content will automatically been posted to under category choosen and become the submenu on the main page.

I also would create a module for user to create the category.

could you
Post Reply