We all know that feeling that we miss something in a product. If it's not there, we simply can't find it. It's good to know that Sitecore provides us with more than documentation. It's good to know that Sitecore Support is there to help us out.
One of the things I really missed in Content Hub, is filtering out entities that already have a relation with the parent entity. For example, a Product entity that has related assets. If you search for assets to link to, you don't want to show the already linked assets. I always thought this was a shortcoming of the product and that it simply wasn't possible.
For example, we have Nike Air Jordan 1 - True Blue shoes in our product catalogue. We already have a left and right image of the shoes.
Used images are trademarks of Nike
If we open the linked asset search, we see the assets that are already linked to the product. Which is not very helpful for the end user.
Used images are trademarks of Nike
Luckily for me, someone asked me the question on Slack and I decided to put the Support team to the test. You can imagine my surprise that they came up with an actual answer, saying it's possible. Apparently, there is a filter operator named Missing. Which is what we need to solve the issue.
So how does it work?
For this example, I'm going to modify the product details page. You can find this page under Home > Products > Products > Product detail.
Used images are trademarks of Nike
Until next time!