# Hacking discourse to create sub-sub categories

**URL:** <https://meta.discourse.org/t/hacking-discourse-to-create-sub-sub-categories/63454>\
**Category:** Development\
**Created:** [May 26, 2017, 8:17pm UTC](https://meta.discourse.org/t/hacking-discourse-to-create-sub-sub-categories/63454 "2017-05-26T20:17:45Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Mehal\_Shah](https://avatars.discourse-cdn.com/v4/letter/m/4491bb/32.png) [@Mehal\_Shah](https://meta.discourse.org/u/Mehal_Shah)\
**Post date:** [May 26, 2017, 8:17pm UTC](https://meta.discourse.org/t/hacking-discourse-to-create-sub-sub-categories/63454/1 "2017-05-26T20:17:45Z")

</div>

Hi folks,

I need to create one additional level of categorization for our forum for [Code.org](http://Code.org). I’d like people to click a category (High School Computer Science), and see a list of our courses (Course 1, Course 2, Course 3), then click Course 1 and see a list of units in the course (Unit 1, Unit 2, Unit 3). Under each unit, there would be topics.

I know that this isn’t supported out of the box for discourse, so I’m willing to fork discourse and do some hackery on my own. I see a couple of ways of doing this

- Add a method to the list controller - like parent\_category\_category\_subcategory [here](https://github.com/discourse/discourse/blob/master/app/controllers/list_controller.rb#L107) and add appropriate routing to it.

- Use tags. People who post topics have their posts tagged with the appropriate unit (somehow - don’t know how yet). Then I add a route for something like c/:parent\_category/:category/:tag that loads topics in a given category with a given tag. I’ll also have to change the category view to render tags as subcategories.

Are either of these solutions plausible? Is there a third way I should be considering?

---

_[View the full topic](https://meta.discourse.org/t/hacking-discourse-to-create-sub-sub-categories/63454)._
