Computing.Net > Forums > Web Development > Content Management Syste

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Content Management Syste

Reply to Message Icon

Name: deity_me
Date: October 7, 2005 at 19:38:37 Pacific
OS: Slack 10
CPU/Ram: P4
Comment:

I'm trying to make a small content management system. not a full blown one.
I just need it for users to login type in their articles place them in the appropriate categories or create new ones. and then the site to display them.

I need a database schema for this.
I just dont know how to deal with these multi-level categories thingy like
Category 1
sub_cat_1_1 content 1
suc_cat_1_2 content 2 content 3
Category 2
sub_cat_2_1
sub_cat_2_ contents

Thanks

Money not an issue?
Where do you live and when are you not home?
I'm not gonna rob you, I'm just gonna steal some stuff



Sponsored Link
Ads by Google

Response Number 1
Name: Laler
Date: October 8, 2005 at 07:23:41 Pacific
Reply:

you should look at other CMS' db schema, look at phpBB's, it's not too complicated as it's not a full-blown CMS but hopefully you can learn how to make an efficient scheme.

I'll say, create these tables for example:

articles
id - author_id - timestamp - category_id

categories
id - name

authors
id - name

article_text
id - text


That way, the table that being used for general process is the `articles` table which will be efficient as it only has numbers in it. And you can use LIMIT when fetching infos from other tables.

The INT types or other column types, or the index types, is up to you. Can't say which one is better, take a look at phpBB's first :D

Or you can of course ask in here if the question is more specific.


0

Response Number 2
Name: Laler
Date: October 8, 2005 at 07:31:48 Pacific
Reply:

about subcategories:

add a `subcat_id` column in `articles`

and create a `subcat` table with these as column:
id - category_id - name


in phpBB, there're these tables:

forums
topics
posts
posts_text

these are the columns in `posts` (or `articles` in your case):

post_id
topic_id
forum_id
poster_id
post_time
poster_ip
post_username

and a few more but not too related.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: Content Management Syste

Content Management Software www.computing.net/answers/webdevel/content-management-software/1541.html

Content Management www.computing.net/answers/webdevel/content-management/3884.html

Content Management www.computing.net/answers/webdevel/content-management/4148.html