# Is there support for custom topic field per Category?

**URL:** https://meta.discourse.org/t/is-there-support-for-custom-topic-field-per-category/31986
**Category:** Feature
**Created:** [2015年八月11日 06:37 UTC](https://meta.discourse.org/t/is-there-support-for-custom-topic-field-per-category/31986 "2015-08-11T06:37:27Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![anon82356247](https://avatars.discourse-cdn.com/v4/letter/a/bcef8e/32.png) [@anon82356247](https://meta.discourse.org/u/anon82356247)
#### Post date: [2015年八月11日 06:37 UTC](https://meta.discourse.org/t/is-there-support-for-custom-topic-field-per-category/31986/1 "2015-08-11T06:37:27Z")

</div>

Is there support custom topic fields by category that are operable?

One example would be to have an category whose topics require a date and then being able to sort the topics within the category by the new field?

Of course a plugin or some other customization can do it, but can you just use the built in extensibility to get there?

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [2015年八月13日 23:05 UTC](https://meta.discourse.org/t/is-there-support-for-custom-topic-field-per-category/31986/2 "2015-08-13T23:05:05Z")

</div>

There is currently no facility for displaying custom topic fields.

---

<div class="post-metadata">

### Author: ![anon82356247](https://avatars.discourse-cdn.com/v4/letter/a/bcef8e/32.png) [@anon82356247](https://meta.discourse.org/u/anon82356247)
#### Post date: [2015年八月14日 00:00 UTC](https://meta.discourse.org/t/is-there-support-for-custom-topic-field-per-category/31986/3 "2015-08-14T00:00:32Z")

</div>

Thanks. Would you guys consider adding such a feature? Seems like it would have wide applicability. Possible uses include:

Date/Time of event  
Location  
Price  
Solved  
Installed count (would take extra support - essentially having likes update a different field?)

Perhaps some of the code from the custom user fields support could be used.

Thanks!

---

<div class="post-metadata">

### Author: ![RonnChyran](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ronnchyran/32/116334_2.png) [@RonnChyran](https://meta.discourse.org/u/RonnChyran)
#### Post date: [2015年八月24日 16:19 UTC](https://meta.discourse.org/t/is-there-support-for-custom-topic-field-per-category/31986/4 "2015-08-24T16:19:59Z")

</div>

I’d be interested in a feature like this. I’m planning to have a Discourse instance be the backbone of a plugin repository; each plugin would have a topic in a certain category with a field that can be set. An external frontend would then query the API for information from Discourse such as download link, version, and author.

Edit: I found this but it’s not clear how to use this. I’ve also been studying the tagging plugin but I have no idea how that works, I just want to be able to add a custom field to the json output of the topic.

> [@zogstrip](#):
>
> > [@santouras](#):
> >
> > adding fields onto Topics/Posts, that might make it worth having this kind of functionality be easier to tap into?
> 
> We already have [post\_details.rb](https://github.com/discourse/discourse/blob/master/app/models/post_detail.rb) but it isn’t used anywhere it appears. Would that be sufficient? I’d be more than happy to improve the API for plugins.

---

<div class="post-metadata">

### Author: ![meglio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/meglio/32/71444_2.png) [@meglio](https://meta.discourse.org/u/meglio)
#### Post date: [2020年一月15日 05:13 UTC](https://meta.discourse.org/t/is-there-support-for-custom-topic-field-per-category/31986/5 "2020-01-15T05:13:21Z")

</div>

对于我们的山羊奶酪市场，我会使用自定义主题字段。

我会选择“货币”格式，并在“主题视图”中添加“筛选”选项。
