Is there a way in Discourse to add a meta data field to a user, board, category in the DB? Create a custom field in the DB and then store access that data for the user in context?
Thanks!
Is there a way in Discourse to add a meta data field to a user, board, category in the DB? Create a custom field in the DB and then store access that data for the user in context?
Thanks!
Sure, have a search on “Custom Fields” here on Meta.
There are broadly two ways to do it:
You need to extent the relevant serializer in both cases.
You can only do this in a plugin (not a Theme or Theme Component)