Search code examples
sitecoredatasourcesitecore7treelist

sitecore 7 multi datasource field


I have a treelist field that I want to set the datasource to 3 folders p.e.:

/sitecore/Website/News/
/sitecore/Website/Events/
/sitecore/Website/Articles/

Under the website item there are more "folders".

I've searched and spent few hours trying different approaches but none seemed to work.

Is this possible? Do I need to extend the field?

Thank you in advance


Solution

  • You can use IncludeTemplatesForDisplay parameter to filter the items based on templates:

    DataSource=/Sitecore/Content/Home&IncludeTemplatesForDisplay=News Folder,News,Event Folder,Event
    

    IncludeTemplatesForDisplay parameter accepts comma separated templates names, you might need to include parent folder templates names too so that it appear in treelist.

    Hope this helps