Jump to content

Blog category design


nloding

Recommended Posts

What I'm trying to do is create a category listing that can be applied to blogs, but it's a multi-user blog, so each category needs to be linked to the blog itself.  Here is a PNG image that illustrates what I'm talking about (unnecessary rows/tables blurred for privacy):

 

bloghelpphpfreaksab5.png

 

The table "blog_post2cats" seems incredibly messy, and it seems like there should be a better way to do this.  I based this design off Wordpress and the Lyceum modification to it.  I can't think of any better way to set this up.  Does anyone have any thought/suggestions?

Link to comment
Share on other sites

Right.  The idea is that each user can create custom categories for their own blog.  So I have the categories: movies, tv, books, video games; and you have the categories: mysql, php, web dev, salsa.  Each category has a description, and then is tied to a blog post.  But each post can have many categories assigned: if I write a blog about a book about movies, I'd tag both movies and books.  If you wrote one about designing a website for a salsa company, you might check all four.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.