ty0716 Posted July 7, 2015 Report Share Posted July 7, 2015 for example ,I add a new customfields :avatar. This use to save user's avatar url. But this value save where? and how to query this like User model. Quote Link to comment Share on other sites More sharing options...
0 activa Posted July 7, 2015 Report Share Posted July 7, 2015 normally it should be saved in the "values" field . Quote Link to comment Share on other sites More sharing options...
0 Tyson Posted July 7, 2015 Report Share Posted July 7, 2015 The screenshot you included shows the record of your defined custom fields, not the values that clients have set. Those are stored in the `client_values` table. However, you need not be concerned with the table structure if you're writing a plugin that uses the API. Simply call the Clients model, which provides several methods for managing custom fields, e.g. Clients::getCustomFields, Clients::getCustomFieldValues Quote Link to comment Share on other sites More sharing options...
Question
ty0716
for example ,I add a new customfields :avatar. This use to save user's avatar url.
But this value save where? and how to query this like User model.
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.