This doesn’t work because you can’t perform the actual logic calculation in a Template. This needs to be handled in the corresponding js by a Computed Property. Be sure to read the official Ember guides (making sure you select the same version that Discourse uses) and look at the code in one of the many popular Customization > Plugin on here to provide you with examples.
merefield
(Robert)
3
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Accessing variables in a connector | 9 | 1344 | February 11, 2021 | |
| How to use user field in hbr file? | 2 | 962 | July 13, 2022 | |
| Put user custom field on the user account page | 4 | 1360 | November 23, 2019 | |
| How to add custom fields to models | 48 | 9769 | September 30, 2025 | |
| Add a custom per-user setting in a plugin | 27 | 5161 | December 20, 2023 |