Reputation: 568
I am making a form in Sitecore which data sources drop down items.
In a nutshell, I have a data template which has a DropList field which I want to then data source from a Sitecore folder item which contains numerous items of a different data template.
For example - a 'Categories' drop down list, in which the content editor can define their own categories by creating new items of the 'category' template type.
I then want to populate an drop down list with these values.
What is the best way to go about populating a drop down list using this method? I have a number of drop downs to populate like this in my form so want to nail down the best method and I haven't found any examples of something similar after an hour or 2 of browsing the web.
Upvotes: 1
Views: 6646
Reputation: 2077
You can either use query and look for template name or other value you require or add parameters to the DataSource as shown here
See this answer for some examples
Upvotes: 1