1

What is the best practice to create a custom toolbox section in SXA?

I am looking to reuse promo rendering under this custom components section.

Is this something which can be achieved without editing the code?

Also will it overwrite/delete the custom component section when upgrading to next Sitecore or SXA version ?

  • you wanted to create new tab in list of available tabs like Social/PageContent or any other things. Can you please provide more details or any screenshot for reference? – Amit Kumar Jan 19 '18 at 2:49
3

If you want to start creating your own custom renderings (completely new one or by cloning existing one) I would suggest creating a new feature. SXA has scripts for this, take a look:

enter image description here

Then you can simply extend your Site with this feature, there is also a script for this:

enter image description here

Ok, you have your new feature (the place where you will be creating your own renderings) so you can easily create new toolbox section. The tricky thing is that it will be created not from the name of an item under /sitecore/content/Tenant/Site/Presentation/Available Renderings but the name will be taken from an item under which you've stored your rendering. So:

  1. Create a rendering:

enter image description here

  1. Add it to available renderings (under your site):

enter image description here

  1. Done
  • Will it overwrite this custom feature when upgrading to next version of Sitecore or SXA? – Discovery Jan 19 '18 at 13:19
  • No - it will be safe:) – Dawid Rutkowski Jan 20 '18 at 11:27

Not the answer you're looking for? Browse other questions tagged or ask your own question.