Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jay 425 posts 652 karma points
    Nov 03, 2016 @ 18:21
    Jay
    0

    XmlPublishedContent's instance properties hides a property in the umbraco properties collection of the same name

    Hey Lee,

    I've got the below. Was wondering howdo you do the PropertySource to override the order the properties are checked?

    Thanks

    Our.Umbraco.Ditto.UmbracoPropertyAttribute - The property Name being mapped from content type XmlPublishedContent's instance properties hides a property in the umbraco properties collection of the same name. It is recommended that you avoid using umbraco property aliases that conflict with IPublishedContent instance property names, but if you can't avoid this and you require access to the hidden property you can use the PropertySource parameter of the processors attribute to override the order in which properties are checked.

  • Jay 425 posts 652 karma points
    Nov 04, 2016 @ 14:44
    Jay
    100

    Found it,

    You need to put an attribute above your property like the one below if anyone is looking for it

    [UmbracoProperty(PropertySource = PropertySource.InstanceProperties)]
    public string Name { get; set; }
    
  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Nov 06, 2016 @ 22:06
    Lee Kelleher
    0

    Cool, glad you found it.

    (I was away at the UK Festival - hadn't had chance to reply yet - all good!)

    Cheers,
    - Lee

  • Jay 425 posts 652 karma points
    Nov 07, 2016 @ 17:17
    Jay
    0

    Oh UK Festival. Nice. No prob Lee :)

Please Sign in or register to post replies

Write your reply to:

Draft