Extending SXA Page Branches To Other Sitecore Templates

Extending SXA Page Branches To Other Sitecore Templates

In our previous article on Sitecore Experience Accelerator (SXA) Page Branches we talked about how in order for the page branch rules to work, they would only affect items that inherited the default Page template in Sitecore. Hence, items based on Folder would not get page branches added to them. Or any other templates that don't inherit Page.

Sitecore folder branch


As you can clearly see, a folder item inside the same site context, does not get the insert options a content page might get based on the same rules.

Sitecore single page insert options in SXA

Can we fix it? Yes, we can.

Configure Insert Options

Much like in a traditional site, we can still configure insert options via the __Standard Values. There's a catch though. Due to where the page branches are stored, you'll notice that they don't appear where they normally would. Thus you can't select them via the Insert Options tab.

Sitecore old way to insert options

How To Add Them Manually

First, let's grab the item ID of the page branch we want to have as an insert option.

Sitecore page branch item ID

Then, let's load up the item's template standard values for the item that we want to add. In this case, the Folder template.

Sitecore folder standard values

Then, while using Raw Values enabled under the View tab, scroll down til you get to Insert Options and add in the ID to the field.

Sitecore folder insert options

Ensure that your ID's are separated by a pipe symbol, |.

Once done, you'll now see that page branch added to your insert options list.

Sitecore folder insert options added

And that's all that's needed. Now you know how to achieve the same result whether the item inherits a Page template or not.

👋 Hey Sitecore Enthusiasts!

Sign up to our bi-weekly newsletter for a bite-sized curation of valuable insight from the Sitecore community.

What’s in it for you?

  • Stay up-to-date with the latest Sitecore news
  • New to Sitecore? Learn tips and tricks to help you navigate this powerful tool
  • Sitecore pro? Expand your skill set and discover troubleshooting tips
  • Browse open careers and opportunities
  • Get a chance to be featured in upcoming editions
  • Learn our secret handshake
  • And more!
Sitecore Snack a newsletter by Fishtank Consulting

Meet David Austin

Development Team Lead | Sitecore Technology MVP x 3


David is a decorated Development Team Lead with Sitecore Technology MVP and Coveo MVP awards, as well as Sitecore CDP & Personalize Certified. He's worked in IT for 25 years; everything ranging from Developer to Business Analyst to Group Lead helping manage everything from Intranet and Internet sites to facility management and application support. David is a dedicated family man who loves to spend time with his girls. He's also an avid photographer and loves to explore new places.

Connect with David