You set up your extension’s manifest.json file to automatically create a new CSM Page Type record. When a user installs your extension from a bundle, NetSuite automatically creates the record based on the parameters you set here.
To set up your extension to create a CMS Page Type record:
Open your extension’s manifest.json file.
This is located in your Workspace/[extension] folder.
page object and
Create a new object in the
types array for each new page type you want your extension to create. See Page in the Extension Manifest topic for details.
Save your manifest.json file.
Page Types in a Development Environment
During early testing and development, no bundle exists for your extension. You can test an extension by deploying it to an account. However, since the bundle installation is what triggers the CMS Page Type record creation, you must manually create the record in NetSuite to test your extension. This is not the typical user experience, but it is necessary to build the mechanism during development.
Observe these minimum requirements for testing a CMS Page Type record with your extension:
The Name and Display Name fields are mandatory.
The Name field must match the
name parameter in the
To appear in SMT, the CMS Creatable field must be set to Yes.
To create a CMS Page Type record manually, see CMS Page Type Record.