πŸ“£ 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.

Best Answer

  • Steven Knobles
    Accepted Answer

    Hello @Denis Ostrovsky, This can be achieved with the following steps:

    1. Section JSON should be posted in the admin's dashboard console POST /:content
    2. 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.

Answers

  • i followed the same steps but i get this error "Couldn't load section component"

Sign In or Register to comment.