Using the onlySettings property in a content type
onlySetting property indicates that a content type is meant for settings only.
You can use this attribute for content types that do not require storefront content, such as SEO pages.
|Image 1||Image 2|
|Image 1 - Content type with ||Image 2 - Content type without |
This property ensures the content type page displays only the available settings without the Sections tab. Follow the steps below to use the
onlySettings property for your desired content type.
- Go to the store repository and access
- Choose a content type and set the
true. For example:
"name": "Global SEO Settings",
- Sync your changes in the
CMSfolder by running the following command:
vtex cms sync
After syncing your changes, go to your store Admin and select Storefront > Headless CMS. Then, navigate to the content type to which the property was added and check if the only tab displayed is the settings tab.