Questions tagged [tree-list]
For questions about Sitecore's tree list field type, including use, source setting, customization and extension
27
questions
0
votes
3
answers
98
views
How to only allow the creation of a child item by given template
I have a requirement to only allow users to create child item by given template. I am thinking to create a template called TemplatedFolder with one field called AllowedTemplateIds as Treelist to ...
1
vote
3
answers
171
views
How to use Sitecore Multiroot Treelist
Using Sitecore 10.3
I would like to try the Multiroot Treelist field.
The requirement is to have an option for the author to choose from multiple locations, in the treelist field.
Could anyone please ...
0
votes
0
answers
8
views
When a field is marked with type TreeListEx and if we add some media items to that field , end result URL doesnt contain HASH value [duplicate]
When a field is marked with type TreeListEx and if we add some media items to that field , end result URL doesnt contain HASH value even if Media.Request.Protection.Enabled is set as true.
1
vote
2
answers
183
views
What is the correct syntax to update the value of a Tree-list field type on an item in Sitecore using Powershell?
I have a Treelist field type on an item which I am trying to update using a Powershell script which is reading data from a CSV file. I am using the following snippet in my script:
#Create an array of ...
2
votes
1
answer
242
views
How to set relative path for datasource of treelistEx field
I would like to change the datasource of treelistEx field in template from
/sitecore/content/Home/Web1/
to
datasource=query:./ancestor-or-self::*[@@templateid='{F045A478-2CEC-4333-970D-808DC9FFE9BC}' ...
1
vote
1
answer
403
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
398
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
758
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
266
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 ...
2
votes
1
answer
639
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
3k
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
485
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
709
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
2
answers
2k
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
46
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
256
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
571
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
260
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
194
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
880
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
310
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
2k
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
107
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
983
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
1k
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. ...