Have you ever had to show items in a list dynamically based on its parent?
The case was to map the department with it’s company, so we needed to put the path of the company on the parent of the department.
Currently we’ve been using Multi list with search however, have found it’s better to use a custom data source as the query as fast query didn’t work for this case.
Using the “code” Data source was the best solution for this case.
Below is an example of how we implemented this:
Firstly, you have to add reference for Sitecore.Bucket.dll as we will implement IDatasource interface
In the source of your Multi list field put it in the below format:
code:”your class namespace with method”, “dll name”
For more tips and tricks
Talk to a Sitecore expert