orest
1 month ago

Categories, sub-categories and threads

Posted 1 month ago by orest

I'd like to create a forum which has different categories of threads.

Each category might have a sub-category.

Therefore, when i click on a category there are 2 options

  1. If this category has sub-categories, then display the sub-categories

    1. If i click on a sub-category, it should display the threads associated to that sub-category
  2. If this category doesn't have sub-categories, then display the threads associated with that category

For example

Category with sub-category :

Category: iOS Sub-category: iOS 13

Category without sub-category:

Category: General

I'm trying to figure out a way to define a relationship between threads and category/sub-category

Any ideas ?

Please sign in or create an account to participate in this conversation.