AnswerBun.com

Multiroot Treelist with datasource queries

Sitecore Asked by MEENU CHAUHAN on September 26, 2020

We had a requirement that we need to show 3 template locations in a Tree List field. We found similar questions here – Multi-root treelist with queries, and created a multi-root treelist by following the above question, but we are unable to find the exact Datasource query that we need to use. We need to show only the required template and hide all other templates.

We tried the following queries –

query:/sitecore/templates/User Defined/Page Templates|/sitecore/templates/User Defined/Item Templates


datasource=/sitecore/templates/Page Templates&IncludeItemsForDisplay=Template1,Template2,Template3&ExcludeTemplatesForSelection=Template Folder&IncludeTemplatesForDisplay=Template|datasource=/sitecore/templates/Item Templates&IncludeItemsForDisplay=Dmat document&ExcludeTemplatesForSelection=Template Folder&IncludeTemplatesForDisplay=Template

But didn’t get the actual results. Can you please help us?

One Answer

Try to apply datasource query like this -

datasource=/sitecore/templates/Page Templates|/sitecore/templates/Item Templates&IncludeItemsForDisplay=Template1,Template2,Template3&ExcludeTemplatesForSelection=Template Folder&IncludeTemplatesForDisplay=Template

This will give you multi-root paths.

Correct answer by Gaurav Agarwal on September 26, 2020

Add your own answers!

Related Questions

This site cant be reached error while I am loading sitecore 8.2 client

2  Asked on December 30, 2021 by manideep-yechuri

   

Prevent sitecore from creating the the sitename#lang cookie

2  Asked on December 20, 2021 by manoj-sreekumar

 

Using serilog on Sitecore 9.0.1

1  Asked on December 13, 2021 by alecasciaro

 

How to identify configured tasks in visual studio

1  Asked on December 11, 2021 by jeyanth-praveenkumar

   

How to debug Sitecore Helix Feature using Visual Studio 2017?

2  Asked on December 7, 2021 by grilosape

 

Ask a Question

Get help from others!

© 2022 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP, SolveDir