Questions tagged [tree-list]

For questions about Sitecore's tree list field type, including use, source setting, customization and extension

Filter by
Sorted by
Tagged with
1
vote
0answers
33 views

Retrieving treelist selected items in another treelist field

I have two templates (Template1 and Template2) Template1 has a field List1 which is Treelist field type Template1 -List 1 (TreeList field) Template2 has a field List2 which is Treelist field type ...
1
vote
1answer
43 views

Template field | Exclude filter on basis of template for TreeList and TreelistEx

Sitecore version: 9.0.2 What I am trying to do: I have created a template. In one of the fields, I need to have my data type as 'TreeList'/ 'TreelistEx'. 'TreelistEx' is preferred. The ...
1
vote
1answer
63 views

How to query multiple datasources & multiple templates in sitecore query

The content tree is as follows: sitecore |_content |_Site1 |_Home |_Articles |_Category |_article1 |_article2 |_Site2 |_Home |_Rewards |...
0
votes
1answer
49 views

TreelistEx souce query not working

I have the content structure as follows: sitecore |_content |_Site1 |_Home |_Articles |_Category |_article1 |_article2 |_Site2 |_Home |_Rewards ...
1
vote
1answer
127 views

Sitecore Treelist - How to select all child items into selected list(left to right window) based on parent selection?

I'm working on Treelist field and have to select all children items at a time (like select all option) to selected list from Treelist (left to right window). Is there any default option there or do ...
0
votes
1answer
215 views

Multi-root treelist with queries

I'm trying to use the Multi-root treelist that Kam Figy made and that Zachary Kniebel extended. I used this guide to add the Field-type to the Core database. All is well, until I put query: anywhere ...
1
vote
0answers
36 views

Multitennant Datasource locations for treelist

For input fields which support the query syntax its no problem like Droplist Grouped Droplist DropLink Grouped Droplink Checklist Multilist Droptree here I am using the following query query:./...
1
vote
1answer
58 views

Multilist pick subcategory based on the category selection

I have a Categories Item and Each category has Sub categories - Category 1 - Sub Category 1 - Sub Category 1 - Sub Category 1 - Category 2 - Sub Category 2 - Sub ...
0
votes
0answers
99 views

How to replace an item with another item by ID in Treelist field using Powershell?

I want to replace an item with another item in a Treelist. Basically, the items I want to replace are broken links. Suppose, There are two items A and B. A is used in a Treelist field, so I want to ...
0
votes
1answer
161 views

Fill TagTreelist field programmatically (SXA) [closed]

I'm having some troubles with filling a TagTreelist field programmatically. I simply tried the same as for treelist fields as i know it works: string tagID = Search.GetYearTagItem(year, "/sitecore/...
0
votes
1answer
43 views

DynamicPlaceholder get Parameter Templates Treelistvalues

I've created a Parameters Template with a Treelist Field and a Rendering which uses this Template. That works so far I can select multiple values. But Now I am using this rendering in a dynamic ...
0
votes
1answer
329 views

Computed Index Field for TreeList in SOLR [duplicate]

as treelist values is being indexed in solr as IDs so I needed to create a computed index field for it to read the names, as follows namespace TAMM.SXA.Feature.ServiceDetails.ComputedIndexFields { ...
0
votes
1answer
115 views

How to add new items to a Treelist field in the Datasource item from SXA edit mode like Link List

I need to add new items to my Treelist field in the datasource item of the component from edit mode like Linklist. Anyway, Linklist contains child items but is there any way we can handle similar ...
1
vote
1answer
856 views

Sitecore Read a treelist field in view rendering

I have a template with field of type treelist which holds images, i want to read this field in my view rendering (.cshtml file) and loop over the images and display each one in an tag. How can i do ...
0
votes
0answers
61 views

Sitecore Control to select inherited field?

Using Sitecore 9.0.1, I need to select a field but this field may be inherited from a base template. ie. I wont the content author to be able to select a field name using a suitable control and this ...
4
votes
2answers
2k views

Retrieving multiple items in treelist query

How can I get a query-based treelist to return a list of items relative to the current item, that fits a template, instead of only the first result Search structure: -Parent Item --Segments ---Item ...
2
votes
1answer
593 views

Showing selected folder from the content node in tree-list is not working

Showing selected folder from the content node in tree-list is not working. We have used the below query but looks like only parent node is visible not the child nodes. DataSource=/sitecore/content/...
5
votes
2answers
2k views

How do I define multiple sources in the Source of a Treelist field?

I am trying to add multiple root folders to the source field of a treelist template field. For example: Datasource=/sitecore/media library/ | /sitecore/content/ I have done this with sitecore query, ...
13
votes
2answers
786 views

How to filter items by language in Treelist field

On a multilingual site, how can I make a treelist field to only show items of selected language in the editor -so editors can't select items that do not have versions or shouldn't exist on their site. ...