# Hook for a topic's category id?

**URL:** <https://meta.discourse.org/t/hook-for-a-topics-category-id/40002>\
**Category:** Development\
**Created:** [22 فبراير 2016، 7:44م UTC](https://meta.discourse.org/t/hook-for-a-topics-category-id/40002 "2016-02-22T19:44:40Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![stevenpslade](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stevenpslade/32/53550_2.png) [@stevenpslade](https://meta.discourse.org/u/stevenpslade)\
**Post date:** [24 فبراير 2016، 10:13م UTC](https://meta.discourse.org/t/hook-for-a-topics-category-id/40002/4 "2016-02-24T22:13:40Z")

</div>

Thanks for this @joebuhlig. So you think if you reopen the TopicRoute, we should be ble to get the topic with `var topic = this.modelFor('topic');` and then the rest with `topic.category.id`?

---

_[View the full topic](https://meta.discourse.org/t/hook-for-a-topics-category-id/40002)._
