Yes, it doesn't work unfortunately. As the indexer indexes based on the guid in the content picker, but the multinode picker returns a comma separated string with all the guids based on the nodes picked, I had to create a method that extracts each guid into its own object and indexes them each by themselves.
In terms of getting the pickers' information,
I recently did this, and injected IContentService to get the content itself and used the properties to add to the index.
then you can retrieve it by
Content delivery API - how to filter on nested properties?
Hi, I'm using the latest Umbraco v13.0.2 and starting to try out the Content delivery api. Can do simple filtering like:
But how about if I want to access something deeper in the content? say my event doctype returns this structure:
How would I make a filtering query to filter on the someProperty, or the id in anotherProperty? Does this require extending the api?
I have tried 10 different queries like:
nothing works, seems its not implemented, can't find anything about it in docs either.
I am going to try to make my own filter method as docs says here: https://docs.umbraco.com/umbraco-cms/reference/content-delivery-api/extension-api-for-querying#custom-filter
Did you try
v2
of delivery API as the documentation mention? I am not sure it was available inv1
?I haven't tested it myself though.
Yes, it doesn't work unfortunately. As the indexer indexes based on the guid in the content picker, but the multinode picker returns a comma separated string with all the guids based on the nodes picked, I had to create a method that extracts each guid into its own object and indexes them each by themselves.
Hi Bjarne
I am not sure I am doing it right, but all of these returns an error:
/api/v2/content?fetch=children:e5502e78-4b12-42d7-b58f-5220c91027b8&filter=properties[klubID]:K8800
{"type":"Error","title":"Filter option not found","status":400,"detail":"One of the attempted \u0027filter\u0027 options does not exist"}
You need to add a custom filter for your property.
https://docs.umbraco.com/umbraco-cms/reference/content-delivery-api/extension-api-for-querying#custom-filter
In terms of getting the pickers' information, I recently did this, and injected IContentService to get the content itself and used the properties to add to the index. then you can retrieve it by
umbraco/delivery/api/v1/content?filter=customFilter:something
Hope this make sense :)
is working on a reply...