Skip to main content
23 votes

What's the best way to update items created from a branch template

There isn't a way - really. Not an out-of-the-box one, anyway. To achieve it; Sitecore would need to record a delta of item changes - which it doesn't. Remove a rendering - Sitecore removes it; but ...
Mark Cassidy's user avatar
  • 25.3k
7 votes
Accepted

How do I fix a broken 'Created from' reference when the branch no longer exists?

As a workaround, please perform the following steps: Create a backup before making any changes. Serialize the problem item (Developer > Serialize > Serialize Item). Open the created file (Data\...
Vlad Iobagiu's user avatar
  • 18.6k
6 votes
Accepted

Create an item with a specific ID and Branch

If what you are looking to do is create a new item with a specific ID from a specific branch template then what you are looking for is the following: var newItemName = "Name of Root Item to Create" //...
Zachary Kniebel's user avatar
5 votes
Accepted

Is it possible to use a Sitecore query to set an item's data source?

As mentioned in my comment, I noticed on a project that it was not possible to use queries in a datasource field. I had a branch template that created some children and the parent item might have ...
Gatogordo's user avatar
  • 20.1k
5 votes
Accepted

Sitecore Data Exchange Framework Branch Template Issue Template is invalid

Override InProcItemModelRepository class. Create patch file to override item model repository. Have look at Sitecore.DataExchange.Local.config There is configuration to specify item model repository....
Vlad Shpak's user avatar
  • 1,792
5 votes
Accepted

Execute custom logic whenever an item is added from a particular branch template

There are actually a few options here: Command Templates Event handlers (item:added) Pipeline processors (uiAddFromTemplate, addFromTemplate) Command Templates This is by far the simplest solution, ...
Zachary Kniebel's user avatar
4 votes
Accepted

What's the best way to update items created from a branch template

I know that this is an old post, but I was looking through and just wanted to add some information to help anyone who is actually still hoping to implement similar behavior to this. At a high-level, ...
Zachary Kniebel's user avatar
3 votes

Sitecore branch with a saved search, how do I change the location dynamically when the branch is created

I don't know much about bucket location filters, but it looks to be a field on the bucket item. Where you want to start is with the addFromTemplate pipeline. This is the pipeline that is called when ...
Chris Auer's user avatar
  • 13.1k
3 votes

Is it possible to use a Sitecore query to set an item's data source?

There is a solution out there to help deal with this in a different way. Using the linked solution called Branch Presets, you would set your datasource as a normal, full path in your branch template. ...
Teeknow's user avatar
  • 2,477
3 votes

Setting a droplink default in a branch template

There isn't an OOTB way to achieve this. But. I always use Alen Pelin's SmartCommands. Included in this package is "Smart Create From Branch" which does what you need. Having this branch template ...
Mark Cassidy's user avatar
  • 25.3k
3 votes

Create an item with a specific ID and Branch

What you're asking for, doesn't entirely make sense. At least not to me. But let's start with the questions: The questions Can I create a new Item with a specific ID and branch? Well you can create a ...
Mark Cassidy's user avatar
  • 25.3k
2 votes
Accepted

Getting insert options even though item is configured to have none

It turns out that the cause to my issue was lying within the rules set under Sitecore -> System -> Settings -> Rules -> Insert Option Rules, These rules make it easier to set insert options for a ...
Muradious's user avatar
  • 531
2 votes
Accepted

Relative datasource for template field

[CChart Row] template would have Multilist field instead of Droplist as you want to select multiple [CChart Hearder] items like blue, red green while Droplist will allow to select only one of these. ...
Waqar Haider's user avatar
2 votes

Relative datasource for template field

You can use something like this in your template field source (You would need to change the templateid value to be the actual ID of your comparison chart template ID ): query:./ancestor-or-self::*[@@...
Ahmed Okour's user avatar
  • 2,124
2 votes

Sitecore Data Exchange Framework Branch Template Issue Template is invalid

I didn't see an Add method in the InProcItemModelRepository when overriding the class mentioned above (overriding Add is mentioned in the linked question). I overrode the CreateItem method to have the ...
Teeknow's user avatar
  • 2,477
2 votes
Accepted

How to get Sitecore template branches to use default language?

There are many ways to go about it. You could add all the language versions you need for your Branch Template items, and add Presentation Details for all of them. Alternatively you could edit the ...
Mark Cassidy's user avatar
  • 25.3k
2 votes

REST client API, item creation using branch template

That's not possible with Restful Api for ItemService. The only method that allows create items there is Create Item (read https://doc.sitecore.com/xp/en/developers/103/sitecore-experience-manager/the-...
Marek Musielak's user avatar
  • 23.9k
1 vote

Multilist '__Standard Value' with child item

In order to achieve, you will need to attach listener to item:create event as below, to update links of broken references in the multilist field. <configuration xmlns:patch="http://www....
ckhanna's user avatar
  • 1,133
1 vote

How to get Sitecore template branches to use default language?

+1 Also, you can access the layouts from the content editor and edit the Layouts. click on the page item and Find the layouts under the Presentation ribbon.
CHUKKA PRASAD's user avatar
1 vote

How do I create a template that contains proprietary components?

You can do it by implementing a custom pipeline that will change Data Sources on all renderings when new branch template is instantiated. So it will adjust all the paths for renderings to point to a ...
Alex Kronberg's user avatar
1 vote

How to automate adding renderings for a branched item added to a page through Experience Editor?

What is the purpose of Gallery component? Does it holds empty placeholder only? If I understand your approach you want to add Gallery Item renderings to that empty placeholder once you create data ...
Alan Płócieniak's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible