Copied to clipboard

Flag this post as spam?

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


  • Arnold Visser 418 posts 778 karma points hq c-trib
    Nov 12, 2010 @ 14:56
    Arnold Visser
    0

    Copy DocumentTypeProperty with dictionary name

    I'm creating a  copy from another document type property.
    I would like to copy the get the same dictionary field name (#name) as the one I copy from.

    However when I try this:

    string propertyTypeName = pt.GetRawName();
    if(!string.IsNullOrEmpty(pt.GetRawName())) {
        propertyTypeName = pt.Name;
    }

    I expected the GetRawName() to give me the non-parsed name of the PropertyType. However it's always NullOrEmpty... Did a quick look in the Umbraco source, but i'm not sure if it's propertly implemented yet.

    Can anyone shine a light on this?

  • Arnold Visser 418 posts 778 karma points hq c-trib
    Nov 15, 2010 @ 15:28
    Arnold Visser
    0

    Is it even possible to get the non-dictionary-parsed name of a property using the API?

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies