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 loving the Property Type Converters shipped with 7.6. They're a fantastic addition!
However, I'm wondering if they can be used in Macros? Perhaps I've missed something somewhere? Or is it an oversight in the Core?
Take the following example (where "picker" is a Content Picker):
var picker = Model.GetParameterValue<IPublishedContent>("picker");
var udi = Model.GetParameterValue<Udi>("picker");
In this case picker will be null, however udi will have successfully returned the UDI. Of course, once could just simply do var picker = Umbraco.TypedContent(udi), but I was hoping to make use of the Property Type Converters for less code.
var picker = Umbraco.TypedContent(udi)
The above example is on Umbraco 7.6.5
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted