How to add user configurable options?


(AstonJ) #1

I’d like to add a user option where users can select their preferred tag style - is there an easy way to do this on Discourse?

On other forum platforms I’d usually just add a user preferences option via the ACP (which I believe we can do in Discourse via customise > user fields) and then in the template simply do something like the following specifying the css class:

if user.field3 == true
  "plain-tags"
else
  "box-tags"
end

Is there any easy way to achieve the same thing in Discourse?