Questions tagged [tree-list]
For questions about Sitecore's tree list field type, including use, source setting, customization and extension
22
questions
0
votes
1
answer
179
views
How to get values selected in Treelist Queryable field
We have try to find all items under treelist field.
Example
$rawIds = [Sitecore.Data.Fields.MultilistField]$page.Fields["Sub Category Pages"]
Here getting $rawIds as null.
Please note here &...
2
votes
2
answers
187
views
How to query Specialized TreeList using GraphQL
I have an item in sitecore which has a field with Specialized Treelist selection. I want to query this field using GraphQL query.
Query:
{
item(path: "{98414240-69F7-4768-9B22-FE8EF17BE984}&...
2
votes
1
answer
197
views
Multiroot Treelist with datasource queries
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 ...
1
vote
1
answer
118
views
Customize Treelist field appearance in Content Editor
I'm wondering how could I modify my custom Treelist field to show, in the selected column, the path of the item instead of just the name. We have lots of duplicated names in different folders and this ...
1
vote
1
answer
346
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 functionality ...
2
votes
1
answer
2k
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
1
answer
373
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
1
answer
499
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 ...
1
vote
1
answer
1k
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
0
answers
43
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
1
answer
195
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 ...
-1
votes
2
answers
388
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
1
answer
227
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
1
answer
152
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
1
answer
786
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
1
answer
260
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
1
answer
1k
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
0
answers
86
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
2
answers
4k
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
1
answer
871
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
2
answers
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, ...
14
votes
2
answers
959
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. ...