Hi guys,
Is possible get a customer field from the current user through the Pageview / Pageview.User?
Thank you,
Ricardo
Hi guys,
Is possible get a customer field from the current user through the Pageview / Pageview.User?
Thank you,
Ricardo
No, create a User instance with the userid and get the custom fields from that object. Be aware of performance.
The performance is the problem, I wanted to avoid extra calls.
Thank you Nicolai.
Use User.GetCurentUser() if it is the user, and cache what ever data you take from the custom field. Also I cannot imagine you need the data on every pageview, so just take it when needed.
I was using User.GetUserByID.
Thank you Nicolai.
You must be logged in to post in the forum