Skip to content

Member email not a default property. #148

Open
@harvzor

Description

@harvzor

I'm not sure if this is a problem with Umbraco or ModelsBuilder - I'm guessing it's Umbraco because the property is pretty weird.

The property name in the Umbraco office for a member email is _umb_email (visible when you hover over the default Email in Umbraco):

image

For some reason, to get the data for a member you have to use the alias Email.

But anyway, this property isn't enabled by default on a member so I have to add a property:

namespace Umbraco.Web.PublishedContentModels
{
    public partial class Member
    {
        ///<summary>
        /// Email
        ///</summary>
        [ImplementPropertyType("Email")]
        public string Email
        {
            get { return this.GetPropertyValue<string>("Email"); }
        }
    }
}

Is there anything that can be done about this in the ModelsBuilder?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions