CMS Content Types as XML Definitions

Create and manage CMS content types, sometimes called custom content types (CCT) using SuiteCloud Development Framework (SDF). You can model a cmscontenttype definition in a SuiteCloud project and deploy the project to a target NetSuite account. You can either create new CMS content types in your project or import existing ones from a NetSuite account. In the NetSuite application, these records are located under Commerce > Content Management > Content > CMS Content Types. For more information, see the following:

The following example shows a CMS content type definition in a SuiteCloud project that uses all available fields:

          <cmscontenttype scriptid="custcontenttype_sample">
    <customrecordid>[scriptid=customrecord_childdatetime]</customrecordid>
    <description>This is a brief description of the CMS content type.</description>
    <iconimagepath>/netsuite.com/sample_image.svg</iconimagepath>
    <label>My First CMS Content Type</label>
    <name>Unique Custom Content Type Name</name>
</cmscontenttype> 

        

A reference to the custom record that is associated with the content type is defined by the customrecordid element. This reference must have a one to one relationship to the CMS content type, meaning that the custom record must not be associated with any other CMS content type.

The icon image path, defined by the iconimagepath element, is represented by a string value. It must start with a slash (/) character and be in an SVG file format.

CMS content type objects must have values defined for the name and label elements. The content type name must be unique.

Related Topics

General Notices