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
https://forums.phpfreaks.com/topic/41772-blog-category-design/
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
https://forums.phpfreaks.com/topic/41772-blog-category-design/#findComment-202567
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.