Storyblok is the first headless CMS that works for developers & marketers alike.
In this tutorial, I will show you how to install and use Storyblok in Salesforce® to manage content and create awesome layouts.
1. Install the managed package
First, you will need a Salesforce developer account and install the CMS as a managed package. The package will install two visual force pages for the admin interface, a custom object for the content storage, and Install managed package.
2. Create a Visualforce page
Navigate to the Custom Code{1} section of your Salesforce dashboard and click on Visualforce Pages{2}.
Click on the New{3} tab and then Create a Visualforce page with the name SbPage.page and insert the code below:
This should look similar to the image below.
3. Create a space in Storyblok
Create a new Storyblok space using this guide, or log into an existing Storyblok space.
Insert your token
After you have created your space, replace YOUR_ACCESS_TOKEN with your token on the Visualforce page:
After creating your space, navigate to your Storyblok space Settings{1}, click on Visual Editor{2}, and add the Visualforce page URL as your default environment{3}.
Insert the URL of the Visualforce page created in step two.
IMPORTANT:
When adding your Visualforce URL to Storyblok, it is essential to append ?page=.
4. Build the content structures you need
Now that everything has been setup you can start build your custom components. Start by creating schema definitions for your blocks, and then add the template code to your Visualforce page.
NOTE:
Check the Storyblok documentation to get started on creating Components/Schema.
Passionate developer and always in search of the most effective way to resolve a problem. After working 13 years for agencies and SaaS companies using almost every CMS out there he founded Storyblok to solve the problem of being forced to a technology, proprietary template languages and the plugin hell of monolithic systems.
Fortune Ikechi
Fortune Ikechi is a Software Engineer proficient with MERN stack and lover of Golang. Fortune is passionate about community building and open source.