π£ The forum has moved to GitHub
Weβve switched to GitHub Discussions as the hub for our community. This will improve the experience of collaborating for everyone, sharing what youβre working on, and discussing ideas for how Swell can be improved. Existing threads will remain open, but new posts are disabled.
Go to GitHub βHow to add own section?
Hello!
I'm trying to create my own section for a storefront. I installed the code locally and added the section vue file and also added the section json file to the config/content directory. And also I added a item in page.json.
However, the sections model does not update, my section does not appear.
0
Best Answer
-
Hello @Denis Ostrovsky, This can be achieved with the following steps:
- Section JSON should be posted in the admin's dashboard console POST
/:content
- Add a new section in
item_types
array for section collection. It is possible to find this collection via admin console via GET/:content/theme.origin.page
.
0 - Section JSON should be posted in the admin's dashboard console POST
Answers
-
i followed the same steps but i get this error "Couldn't load section component"
0