I'd need to double check, but this was the case in V7, as the ids of the dropdown options were stored for the property, and you needed Umbraco to lookup the label for the ID, whichis what GetPreValueAsString used to do...
I think now instead of storing the ID, it's the label text that is stored?
In which case... what is the raw value of LinksSubheading?
Pre values are gone in Umbraco 8 Model.Value<string>(“propertyAlias”) replaces umbraco.GetPreValueAsString(Model.Content.GetPropertyValue<int>(“propertyAlias”))
Alternative to GetPreValueAsString in Umbraaco 8
Im trying to convert this code from umbraco 7 into Umbraco 8.
I cant find an alternative - any ideas?
Hi Jon
I'd need to double check, but this was the case in V7, as the ids of the dropdown options were stored for the property, and you needed Umbraco to lookup the label for the ID, whichis what GetPreValueAsString used to do...
I think now instead of storing the ID, it's the label text that is stored?
In which case... what is the raw value of LinksSubheading?
does it contain your label text?
eg do you need to call anything at all in V8!
regards
marc
According to the article, GetPreValueAsString replaced with Model.Value.
Upgrading the Wanderly platform from Umbraco 7 to 8
is working on a reply...