# 如何为我的主题添加个人/企业目录？

**URL:** <https://meta.discourse.org/t/how-to-add-a-directory-of-people-businesses-to-my-theme/288944>\
**Category:** Product Support\
**Created:** [2023 年12 月 17 日 00:05 UTC](https://meta.discourse.org/t/how-to-add-a-directory-of-people-businesses-to-my-theme/288944 "2023-12-17T00:05:59Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

作者： ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)\
发布日期： [2023 年12 月 17 日 04:18 UTC](https://meta.discourse.org/t/how-to-add-a-directory-of-people-businesses-to-my-theme/288944/4 "2023-12-17T04:18:32Z")

</div>

> [@Tennisboy](#):
>
> 想添加一个企业/服务目录？
> 
> 有什么想法吗？

也许可以从 Discourse 的哪个方面（技术上讲，Discourse 数据库中的哪个模型）最接近表示企业的关键要素来考虑。

这些似乎都不合适：

- 帖子 (post)
- 主题 (topic)
- 标签 (tag)
- 分类 (category)

我认为“群组 (group)”与企业很匹配。Discourse 群组具有以下字段：

- 名称 (name)
- 描述 (description)
- 所有者 (owners)
- 成员 (members)
- 一个（可选的）徽章，可用于区分群组成员
- 一个（可选的）电子邮件域，可用于自动将用户添加到群组
- 一个（可选的）收件电子邮件地址，可用于通过电子邮件在论坛上向群组发送消息
- 权限（可用于管理分类权限等）

这些字段似乎可以映射到您可能想在论坛上表示的企业方面。Discourse 还有一个“群组目录”和单独的群组页面。我怀疑群组目录几乎无需任何自定义工作就可以成为您的企业目录。

显然，这一切都取决于您的具体用例。如果企业不是您论坛的关键部分，您可能需要采取不同的方法。

---

_[View the full topic](https://meta.discourse.org/t/how-to-add-a-directory-of-people-businesses-to-my-theme/288944)._
