Add a way to get a member as IPublishedContent without it being async #13945
jemayn
started this conversation in
Features and ideas
Replies: 1 comment 3 replies
-
Hi @jemayn. Do you need to |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to extend the member index with some of our custom member fields, and when doing that I am hooking into the TransformingIndexValues event where I'd like to get the corresponding IPublishedContent model for the member based on the id.
Back in v8 this would be super easy to do as we could just use the UmbracoHelper to get the member by id.
However, it seems in the later versions this has been removed and moved into the
IMemberManager
which then requires you to get the member by id, and then transform it from aMemberIdentityUser
toIPublishedContent
like this:I don't know the underlying reasons for the change, and whether being able to get the IPC members in a sync way is possible with the way members work now. But it would make some things so much easier if it was possible to do so!
Beta Was this translation helpful? Give feedback.
All reactions