Is there support for custom topic field per Category?

AI-generated summary

Custom Topic Field Support per Category

The discussion revolves around the possibility of adding custom topic fields per category in Discourse. anon82356247 initially inquires about this feature, suggesting its wide applicability for uses such as date/time of events, locations, and prices.

rking responds that there is currently no facility for displaying custom topic fields. However, anon82356247 and RonnChyran express interest in this feature, with potential use cases including plugin repositories and market listings.

RonnChyran also explores the possibility of utilizing existing code from custom user fields support and mentions the post_details.rb file, which could potentially be used to implement this feature.

Lastly, meglio shares another potential use case for custom topic fields, specifically for a goat and cheese market, highlighting the need for a “currency” format and filter option in the topics view.

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?

2 Mi Piace

There is currently no facility for displaying custom topic fields.

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!

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.

3 Mi Piace

Utilizzerei i Campi Argomento Personalizzati per il nostro mercato di formaggi e capre.

Sceglierei il formato “valuta” e includerei un’opzione “filtro” nella “vista argomenti”.

1 Mi Piace