# 类别展示页：哪个调用了 topic-list 组件？

**URL:** <https://meta.discourse.org/t/category-show-page-what-calls-the-topic-list-component/215846>\
**Category:** Development\
**Created:** [2022年一月24日 17:46 UTC](https://meta.discourse.org/t/category-show-page-what-calls-the-topic-list-component/215846 "2022-01-24T17:46:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JQ331](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@JQ331](https://meta.discourse.org/u/JQ331)\
**Post date:** [2022年一月24日 17:46 UTC](https://meta.discourse.org/t/category-show-page-what-calls-the-topic-list-component/215846/1 "2022-01-24T17:46:45Z")

</div>

大家好。我正在尝试理解类别视图是如何渲染的（例如，类别显示页面，就像[这里](https://meta.discourse.org/c/dev/7)一样）。具体来说：是什么调用了 topic-list 组件？

据我所知，类别显示页面的主要两部分是：

1. **templates/navigation/category.hbs** [这控制着类别显示页面的顶部，那里有类别内的导航和打开作曲家按钮等内容]
2. **templates/components/topic-list.hbs** [这是渲染类别主题列表的主要模板]

但是：它们是如何连接的？是什么调用了 topic-list 组件并告诉它使用哪个类别？

我原本期望找到一个总括性的类别模板，其中包含 category.hbs 和 topic-list.hbs 项目，但我还没有找到。（我认为 templates/discovery.hbs 模板可能会在那里，但似乎也不是。）
