Member Picker

    Alias: Umbraco.MemberPicker

    Returns: Member ID

    The member picker opens a panel to pick a specific member from the member section. The value saved is the selected member ID.

    Data Type Definition Example

    Media Picker Data Type Definition

    Content Example

    Member Picker Content

    MVC View Example

    Typed:

    @{
        if(Model.Content.HasValue("author")){
            var member = Umbraco.TypedMember(Model.Content.GetPropertyValue<int>("author"));
                @member.Name
        }
    }
    

    Dynamic (Obsolete):

    See Common pitfalls for more information about why the dynamic approach is obsolete.

    @{
        if(CurrentPage.HasValue("author")){
            var member = Umbraco.TypedMember(CurrentPage.author);
                @member.Name
        }
    }