May well be me doing something wrong, but wondering if these converters are intended to support recursive lookups of properties (i.e. to look on the parent, then the parent's parent, until the item is found)?
As I'm finding this code is returning null unless I'm actually on the page where the property is defined.
var collection = CurrentPage.GetPropertyValue<IEnumerable<IPublishedContent>>("mapPage", true, null);
If that's the case was thinking I could drop down to getting the raw value and converting myself, like this:
var rawValue = CurrentPage.GetProperty("mapPage").Value.ToString();
But GetProperty() (as opposed to GetPropertyValue()) doesn't have the recursive option.
Recursive values support?
May well be me doing something wrong, but wondering if these converters are intended to support recursive lookups of properties (i.e. to look on the parent, then the parent's parent, until the item is found)?
As I'm finding this code is returning null unless I'm actually on the page where the property is defined.
If that's the case was thinking I could drop down to getting the raw value and converting myself, like this:
But GetProperty() (as opposed to GetPropertyValue()) doesn't have the recursive option.
Any advice much appreciated.
Thanks
Andy
Have done some more digging, I think this issue is the core of the problem.
Hi Andy,
Yes, in fact this is fixed in the upcoming Umbraco v6.2 and I have fully tested it out.
I do have a branch of this package with the v6.2 updates ready to go when it's launched.
Regards,
Jeavon
is working on a reply...