CMS Content Type Record

This topic applies to

Applies to

Aconcagua | Kilimanjaro | Site Management Tools

The CMS Content Type Record defines the different types of content for SMT. When you install the SMT Core Content Types bundle, the bundle creates the CMS Content Type records for the following core content types:

  • CMS_HTML

  • CMS_IMAGE

  • CMS_MERCHZONE

  • CMS_TEXT

CMS Content Type Record for CCT

When you create custom content types, you must manually create a CMS Content Type Record for each custom content type. The CMS Content Type Record links to the custom record you created for your CCT. You must create the CMS Content Type Record before your custom content type is available in SMT.

To create a Content Type Record

  1. Go to Lists > Website > CMS Content Types > New.

  2. Click New.

  3. In the Name field, enter a name for this content type. The name must be all lowercase and best practice is to use no spaces. The name identifies this record in NetSuite so make it descriptive of the custom content type. The name you specify here must be set as the value of the id property within the registerCustomContentType() method used to initialize your CCT module.

    See Create a CCT Module.

  4. In the Description field, enter more details about this custom content type to explain its purpose.

  5. In the Icon Image Path field, enter the path in the file cabinet for the icon you want to use for this content type. Only the scalable vector graphics (*.svg) format is supported. If you do not specify an icon, a default icon is used for the content type.

  6. Specify the Label to use in SMT for this content type. The label identifies the content type to the user.

  7. In the Custom Record field, enter the name of the custom record you created for this custom content type.

  8. Click Save.

CCT Icon Requirements

Icons for custom content type should be a single-color SVG image. From a design perspective, the image should be simple but distinctive enough for users to recognize the icon at a glance and associate it with the content type.

Images that are comprised of SVG shape elements that can be filled, rather than SVG strokes, work best. Shapes should have no defined color. The icon can utilize strokes, but the element's fill attribute must be set to "none", and its stroke attribute must be set to "currentColor".

Icon styling should be done using presentational attributes, not CSS. Style elements present in the SVG image may be removed.

Required Settings

  • Valid SVG

  • One root element (<svg>) with valid value for xmlns attribute.

  • Root element's viewBox attribute is set to "0 0 48 48"

  • Color

  • Elements without a stroke must have fill set to "currentColor" or no fill attribute.

  • Elements with a stroke must have fill set to "none" and stroke set to "currentColor".

Recommended Settings

  • desc element

  • Should describe what the image contains or looks like

  • Should be the first child of the root element

  • Should generally only contain shape elements (circle, ellipse, line, path, polygon, polyline, rect), but may also contain structural elements (g, defs, use, symbol)

Not Permitted

  • text, except when integral to a logo/branding where a non-text version is not available or would violate brand guidelines. Any text included should be converted to outlines.

  • raster images

  • style elements

  • script elements

  • animation elements

  • gradient elements

  • font elements

  • filter primitive elements

  • animation attributes

  • event attributes

  • conditional processing attributes