XF 2.2 Adding a "Preferences" option to the home page?

Venthas

Member
Licensed customer
Is there a way to pull a custom field in preferences onto the home page via widget or similar? Thanks!
 
You could use an HTML widget and pull the value using $xf.visitor.Profile.custom_fields.fieldId

Where fieldId is the ID of the custom user field.
 
Sorry, I should be more clear. Is there a way to pull it in such a way that the value can be changed/altered within the widget and saved?
There most likely is, but would definitely need custom development. I only say this because @BassMan 's light/dark mode switcher came to mind when reading this.

 
Back
Top Bottom