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 just starting a new project in Umbraco 7.6.
Working with my macro, I'm querying a parameter:
@Model.MacroParameters["Link"]
Which is a content picker. Pre 7.6 it would return the node id, now it's returning umb://document/7d988c66eb6b40dd84013ab120a042df.
umb://document/7d988c66eb6b40dd84013ab120a042df
Not sure what I'm suppose to do with this.
Any help anyone, couldn't find any documentation with this.
Hi Greg,
Since 7.6 Umbraco changed stored in content pickers data from ids to uids, look here please:
https://our.umbraco.org/documentation/getting-started/setup/upgrading/760-breaking-changes#property-editors-storing-udi-instead-of-id-u4-9310
Awesome, so how to I get the content from a Uid instead of The node ID?
Try to use IPublishedContent object directly from GetPropertyValue, like:
.GetPropertyValue<IPublishedContent>
Model.Content.GetPropertyValue<IPublishedContent>("umb://document/7d988c66eb6b40dd84013ab120a042df")
? cuz that's returning null for me :/
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
umbraco 7.6 and macro parameters
I'm just starting a new project in Umbraco 7.6.
Working with my macro, I'm querying a parameter:
Which is a content picker. Pre 7.6 it would return the node id, now it's returning
umb://document/7d988c66eb6b40dd84013ab120a042df
.Not sure what I'm suppose to do with this.
Any help anyone, couldn't find any documentation with this.
Hi Greg,
Since 7.6 Umbraco changed stored in content pickers data from ids to uids, look here please:
https://our.umbraco.org/documentation/getting-started/setup/upgrading/760-breaking-changes#property-editors-storing-udi-instead-of-id-u4-9310
Awesome, so how to I get the content from a Uid instead of The node ID?
Try to use IPublishedContent object directly from GetPropertyValue, like:
? cuz that's returning null for me :/
is working on a reply...