Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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?
Is it even possible to get the non-dictionary-parsed name of a property using the API?
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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:
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?
Is it even possible to get the non-dictionary-parsed name of a property using the API?
is working on a reply...