Content types are templates that structure your documents. They can be pages, publications, articles, events, products, and any other type of content that you want to insert into your project. You can also use them in the CMS to create an institutional page.
To create an institutional page, follow these instructions.
Instructions
- Define the components of your page. In the example below, we use the
ww.vtex.com
page and its title, partners, highlights, and carousel components.
- In the cms folder, go to the
content-types.json
file.
-
In the
content-type.json
file, create a new content type. To do this, define the following information:id
: content type ID. It is recommended to have a lowercase pattern with no spaces, like with URLs.name
: name that will be displayed on the page.configurationSchemaSets
: extra blocks that will configure the page, such as menu settings and slug blocks, for example.
-
Determine the page sections in the
section.json
file. To define the sections, duplicate an existing one and edit it with the new names and descriptions you want on your page.️ These fields are the structure of your page. Complete them based on what was defined in step one of this guide.
-
After defining the sections, save them. If you want to view the draft, go to the repository for testing. 6. Go to the store to view the final version of your page.