Custom fields on user

Topics: Administration, Troubleshooting, Writing themes
Feb 5 at 9:21 AM
So,

I did a projection of blog posts. And on the projection page I would like to display custom fields that were added on the "User" entity (owner of the blogpost)

There is a:
item.Meta.Items[0].ContentPart.Owner
But it does not contain those additional fields...

How do I go about that?

Cheers,
T.
Feb 5 at 11:05 AM
Owner is IUser. I guess you can access the fields via

var contentItem = (dynamic) item.Meta.Items[0].ContentPart.Owner.ContentItem;
var field = (WhateverFieldTypeIs) contentItem.User.WhateverFieldNameIs;