Adding templates to Content Template Picklist
When developing and creating new themes you will need to add your new templates to the content template picklist. StoreConnect already comes with standard templates added to the picklist where you can also add new ones when using the theme builder.
For the purposes of this tutorial, we will assume you have already created a custom event card template.
Instructions
- Go to setup
- Click on the “Object Manager” tab
- Now find the “Content Block” object
- On the left sidebar, click on Fields & Relationships
- Click on “Content Template” on the right panel
- Now scroll down to the Values section and click on new
- Add a name to the new value of the picklist. Use the name of
Event Card
for this tutorial - Once saved, scroll down again to the Value section, find your new template item and click on edit.
- Check that the API name matches the template key. Use
event_card
value for the API name and don’t include theblocks/
prefix. - Optional step: you can scroll down again to the values section and click on “Reorder” and choose the position of your new template within the picklist.
You can add as many content templates as you want but keep in mind you will need to use a unique value for each content template. For example you can create a new template and use the value using custom_container
or anything appropiate to what you are building.
Content block templates are created the same way as page templates. The only difference is that the key must start with blocks/ and must correspond to one of the Content Block template entries in the Content_Block__c.Template__c
picklist.
Back to Documentation