Custom Record for Custom Content Type

Site Management Tools custom content types use NetSuite’s Custom Records and Fields for defining the settings and values required for the custom content type. For example, if you have a custom content type that displays an image with a text overlay, you must create a custom record for the content type and then create the custom fields for the values required by your content. In the following screenshot you see the custom record for the SC CCT ImageViewer. As part of implementing a custom content type you associate this custom record with a corresponding CMS Content Type Record. See CMS Content Type Record for more information.

Custom Record Type screenshot
Important:

To ensure any custom employee roles that are used in your account to log in to SMT can edit and create CMS content in SMT, the permission access level for the custom records listed below must be set to Full.

Also, to ensure any custom customer roles that are used in your account to access your web store can browse and shop your web store, the permission access level for the custom records listed below must be set to View.

  • CMS_HTML

  • CMS_IMAGE

  • CMS_MERCHZONE

  • CMS_MERCHZONE2

  • CMS_TEXT

For more information about users and roles in SMT, see Users and Roles in SMT.

Custom Fields for Custom Content Type

After you create the custom record, the next step is to define the custom fields. The custom fields you define here are displayed in the side panel in Site Management Tools when you add the custom content type to a page. In this example, the custom fields are used to define the information that is displayed by the custom content type. These fields include:

To reference the custom fields in your custom content type module, use the ID assigned to each custom field. In this example, the IDs for custom fields are:

Note:

Custom content types do not support the Password field type.

After your custom content type is fully implemented, it is displayed in Site Management Tools. The following screenshot illustrates the SC CCT ImageViewer custom content type.

Shows the SC CCT ImageViewer custom content type as it displays in a Commerce website.
Important:

A custom content type is available in SMT only after you have completed all implementation steps.

Tabs for Custom Content Type

Depending on your custom content type and the number, type, or function of fields, you may want to create tabs to organize the fields. You can create tabs in the custom record for your custom content type and assign fields to the tabs. The tabs and field organization are reflected in the custom content types settings in the side panel in Site Management Tools.

For more information about custom records and fields, see Custom Records.

Custom Content Type Records

Each time you use Site Management Tools to add an instance of a custom content type to your site, a CMS content record and a custom record for the custom content type is created. The CMS content record determines how and where the custom content is displayed, see CMS Contents Record. The custom record for the content type stores the values for the custom content elements. In the example of the ImageViewer custom content type, these values include:

Although you can view or edit instances of the custom content types in NetSuite, best practice is to make your changes to the custom content type in Site Management Tools.

To view a custom content type record in NetSuite:

  1. Go to Customizations > Lists, Records, & Fields > Record Types.

  2. In the Record Types list, locate the record for your custom content type and click List.

  3. This displays a listing of all instances of that custom content type.

Parent Child Record Associations

This information refers to SuiteCommerce or the 2019.2 release of SuiteCommerce Advanced or later.

By using parent-child record associations you can create more complex data sets in your custom content types. For example, you create a Custom Record Type named blog. Next, you create a new CMS Page Type named blog. Finally, you use the Custom Record Type dropdown menu to select which record type you want to associate to your page type.

Using this method to create new page types provides you with many options including the abilities to apply specific templates to your page type, add headers or footers, and many other options.

You must use SuiteScript or NetSuite to add, edit, or delete the custom records. Site Management Tools manages only the page types you have associated to the custom record and lets you manage the fields created in your custom record. When you create a new page in Site Management Tools, the pop out menu renders your custom fields when you click Landing Page and you can manage the content in your fields there.

Related Topics

Custom Content Type
CMS Content Type Record

General Notices