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've recently added a property to handle custom URL and attached to all document type as composition.
Now I've implemented a custom content Finder wich need ti search all content with "customizedUrl" property to see if requested url match.
My solution load content content using this xpath "//customizedUrl" then search to matching value.
There are other way to do this? Maybe something better performance wise
Sounds like you are trying to do something that has a builtin (although hard to find) feature: https://our.umbraco.com/documentation/Reference/Routing/routing-properties#umbracourlalias
I've found that property but after some testing and search I've found that there are some problem on multilingual sites:
https://github.com/umbraco/Umbraco-CMS/pull/7479
On more general note, I'm curious ti find out the best way ti search content based on property values
Fair enough wasn't aware of that bug.
It probably depends on the use case, how often do you run the search, how big is the dataset, etc.
But it's probably either an examine search or the content cache 🙂
I was trying to use linq2umbraco but I cannot grasp how to search at every depth from a root node.
Right now the xpath query is executed on contentCache, but I've read that using xpath is considered deprecated now that cache is json based
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
How to find all contents with specific property value
I've recently added a property to handle custom URL and attached to all document type as composition.
Now I've implemented a custom content Finder wich need ti search all content with "customizedUrl" property to see if requested url match.
My solution load content content using this xpath "//customizedUrl" then search to matching value.
There are other way to do this? Maybe something better performance wise
Sounds like you are trying to do something that has a builtin (although hard to find) feature: https://our.umbraco.com/documentation/Reference/Routing/routing-properties#umbracourlalias
I've found that property but after some testing and search I've found that there are some problem on multilingual sites:
https://github.com/umbraco/Umbraco-CMS/pull/7479
On more general note, I'm curious ti find out the best way ti search content based on property values
Fair enough wasn't aware of that bug.
It probably depends on the use case, how often do you run the search, how big is the dataset, etc.
But it's probably either an examine search or the content cache 🙂
I was trying to use linq2umbraco but I cannot grasp how to search at every depth from a root node.
Right now the xpath query is executed on contentCache, but I've read that using xpath is considered deprecated now that cache is json based
is working on a reply...