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
Not sure if this is a bug or incompatability with this version of Umbraco but take the following code:
contentItem.GetPropertyValue("link")
This returns the following data:
<url-picker mode="Content"> <new-window>True</new-window> <node-id>1134</node-id> <url>/events/</url> <link-title>Example Banner</link-title> </url-picker>
However, the following code returns a null value:
contentItem.GetPropertyValue<UrlPickerState>("link");
Am I going the wrong way about this?
Thanks, Simon
Hello,
The UrlPickerState is not a Property Editor Value Converter so that won't work.
Try this:
var urlPickerState = UrlPickerState.Deserialize(content.GetPropertyValue<string>(alias));
Jeroen
Thanks and marked as solution as discovered this earlier and implemented.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
UrlPicker null when using Model.GetPropertyValue<UrlPickerState>("MyProp") in Umbraco v6.1.4
Not sure if this is a bug or incompatability with this version of Umbraco but take the following code:
This returns the following data:
However, the following code returns a null value:
Am I going the wrong way about this?
Thanks, Simon
Hello,
The UrlPickerState is not a Property Editor Value Converter so that won't work.
Try this:
Jeroen
Thanks and marked as solution as discovered this earlier and implemented.
is working on a reply...