Sitecore Content Editor - Modify a Treelist source from 1 template to 2 templates
Original Source:
datasource=/sitecore/content/pmdt-jss-site&allowmultipleselection=yes&includetemplatesfordisplay=Folder,LeftMenuItem-TemplateCard&includetemplatesforselection=LeftMenuItem-TemplateCard
New Source:
datasource=/sitecore/content/pmdt-jss-site&allowmultipleselection=yes&includetemplatesfordisplay=Folder,LeftMenuItem-TemplateCard,LeftNavChilds-TemplateCard&includetemplatesforselection=LeftMenuItem-TemplateCard,LeftNavChilds-TemplateCard
I am developing in sitecore. And tell me as a sitecore expert: I will modify the template, a field type Treelist with source that now contains: datasource=/sitecore/content/pmdt-jss-site&allowmultipleselection=yes&includetemplatesfordisplay=Folder,LeftMenuItem-TemplateCard&includetemplatesforselection=LeftMenuItem-TemplateCard and i want to support no only: LeftMenuItem-TemplateCard i want to support another template too: LeftNavChilds-TemplateCard what must be the new source for this:
To support an additional template, "LeftNavChilds-TemplateCard," in the Treelist field's data source, you need to update the source value accordingly. Here's the modified source:
plaintextdatasource=/sitecore/content/pmdt-jss-site&allowmultipleselection=yes&includetemplatesfordisplay=Folder,LeftMenuItem-TemplateCard,LeftNavChilds-TemplateCard&includetemplatesforselection=LeftMenuItem-TemplateCard,LeftNavChilds-TemplateCard
In the updated source, I added "LeftNavChilds-TemplateCard" to both includetemplatesfordisplay and includetemplatesforselection parameters, separated by commas. This change ensures that both templates are supported in the Treelist field.
Comments
Post a Comment