Hi to All.
I'm struggling trying to build a query that filters Content by the value of a Property in a Document Type. I need to filter all the items tha have a value selected in a dropdown:
I have tried searching the Forum and in Google, but it looks like I can't Use the GetPropertyValue in Umbraco 8.16.0.
Querying Property value
Hi to All. I'm struggling trying to build a query that filters Content by the value of a Property in a Document Type. I need to filter all the items tha have a value selected in a dropdown:
I have tried searching the Forum and in Google, but it looks like I can't Use the GetPropertyValue in Umbraco 8.16.0.
I'm stuck with this:
Thanks in advance for any help.
You have to Get the value of the stop down. In the Umbraco v8, you cannot read the dropdown value as a string field.
https://our.umbraco.com/documentation/Fundamentals/Backoffice/Property-Editors/Built-in-Property-Editors/DropDown/
Then pass it to query.
Hi Rene! I think if you change the
x.GetProperty("tipoComunicazione").ToString()
tox.Value<string>("tipoComunicazione")
, that should make it work!Thanks a lot!
Thanks that worked!!
is working on a reply...