Continuing the discussion from Adding and editing user custom fields :
Note that there can be other custom fields added by plugins, and they might have a strict structure, which I think is why this hasn’t been done. For the “private notes on a user” plugin, it wouldn’t exactly do to expose your ‘private’ notes to the moderators when they went to a user’s page.
Would these fields even show up on user / admin pages I would have assumed it would only be the user_field_X
which are added via the site/customize…
I ask, because I’ve created a field called “subdomain” in the database directly, and it’s no where to be seen in the GUI (which is as I expect)
Never, unless the plugin also adds UI for it.
1 个赞
Good. So this isn’t a factor in what I’m whining asking for here
tgxworld
(Alan Tan)
2015 年8 月 24 日 06:54
4
I ran into this problem and wasn’t sure if there was a better way to expose it under User’s preferences.
https://github.com/tgxworld/discourse-cakeday/blob/14c902199a236026c3c67a3f99027fe063226363/plugin.rb#L11-L31
Any thoughts?
tgxworld
(Alan Tan)
2015 年8 月 27 日 02:07
5
@sam Could I get your thoughts on the above? Thanks
sam
(Sam Saffron)
2017 年3 月 1 日 14:32
6
Well … any update on what ended up happening here
tgxworld
(Alan Tan)
2017 年4 月 3 日 02:13
7
I ended up using a plugin outlet here. From what I know, we still don’t have a clean way for plugins to expose custom fields on the user preferences page.
4 个赞
I’m trying to do the same … what would be a cleaner way?