CMS Content Type Record
The CMS Content Type record sets up the different content types for SMT. Ater you install the SMT Core Content Types bundle, it creates the CMS Content Type records for the following core content types:
-
CMS_HTML
-
CMS_IMAGE
-
CMS_MERCHZONE
-
CMS_MERCHZONETWO
-
CMS_TEXT
CMS Content Type Record for CCT
After you create custom content types, you must manually create a CMS Content Type record for each one. 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
-
Go to Commerce > Content Management > Content > CMS Content Types > New.
-
Click New.
-
In the Name field, enter a name for this content type. Use all lowercase, and it’s best not to use spaces. This name identifies the record in NetSuite, so make it descriptive. The name you specify here must be set as the value of the
id
property within theregisterCustomContentType()
method used to initialize your CCT module. -
In the Description field, enter more details about this custom content type to explain its purpose.
-
In the Icon Image Path field, enter the file path for the icon you want to use (only SVGs are supported). If you don’t pick an icon, a default one will be used.
-
Specify the Label to use in SMT for this content type. This is what users will see.
-
In the Custom Record field, enter the name of the custom record you created for this custom content type.
-
Click Save.
CCT Icon Requirements
Icons for custom content types should be simple, single-color SVGs that are easy for users to recognize and link to the content type.
SVG icons made up of shape elements that can be filled, rather than strokes, work best. Don’t set a color for shapes. If you use strokes, set fill to "none" and stroke to "currentColor".
Style your icon with presentational attributes, not CSS. Style elements 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".
Preferred 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, unless it’s part of a logo or branding and you can’t use a non-text version. If you do use text, convert it to outlines.
-
raster images
-
style elements
-
script elements
-
animation elements
-
gradient elements
-
font elements
-
filter primitive elements
-
animation attributes
-
event attributes
-
conditional processing attributes