CMS Content Record

This topic applies to

Applies to

Site Management Tools

The CMS Content record defines specific information about how each instance of SMT content is displayed. Each CMS Content record links to a corresponding custom record for content. For example for each CMS_IMAGE custom record, there is one corresponding CMS Content record. The CMS Content record specifies how and where content is displayed. The CMS Content record includes the following fields:

Name

The name is an internal identifier for the content. The name is not displayed to the visitor on the website. The name field is left empty for content created through SMT.

Description

This is a user defined description of the content. The description field is left empty for content created through SMT.

Site

This specifies the site for the content.

Content Type

Identifies the content type. The core content types include:

  • CMS_IMAGE

  • CMS_HTML

  • CMS_MERCHZONE

  • CMS_TEXT

Additional type values may also be available for custom content types.

Settings

Identifies the ID for the custom record that stores the content. This ID links the custom record for the content instance to the corresponding CMS Content record.

Template

Determines the template used when rendering content. This should be set to default.

Match Type

Determines when content is rendered. Values include the following:

  • Exact — Renders the content when all parameters exactly match. For example an exact match for /brandname renders only for a given parameter of /brandname.

  • Broad – Renders the content when the given parameters contains the parameter for the placement. For example, a broad match for /brandname also renders on /brandname/shoes.

Change URL

Specifies the URL used when the content was created or changed. This URL does not necessarily reflect the only URL where the content is displayed. For example, content with page type and global context, can display on many pages. The URL in this field reflects only the URL of the page where the content was added or last edited.

Page Type Context

This corresponds with the SMT This Page area scope and is used for content that you want to place on a specific type of page such as a product detail page or a facet browse page. Available options are:

  • ProductDetails — denotes a product detail page.

  • facet-browse — denotes a facet browse page or a category page.

  • cms-landing-page — denotes a landing page.

See This Page Areas.

Global Context

This corresponds with the SMT All Pages area type. When content is configured to display in all pages, this field contains the *.

See All Pages Areas.

Path Context

The corresponds with the This Page area type and denotes the URL to the page. See This Page Areas.

Area Name

Specifies the name of the area on the page where this content is placed. This name is the value of the data-cms-area attribute from the page template file.

Start Date

The visibility start date and time for the content.

End Date

The visibility end date and time for the content. This identifies the date and time when the content expires.

When this field is empty the content never expires.

Edit CMS Content

Even though you can make changes to content by editing the CMS Content record, best practice for editing content is to make your edits in SMT. Editing the CMS content record directly is not recommended because, if done incorrectly you can cause content to disappear from your site.

Add CMS Content

CMS Content records are created automatically when you add content to your site and publish it. The CMS Content record lets you add a new record directly from within NetSuite. Remember, each CMS Content record links to a corresponding CMS custom record. Although you can manually add CMS Content and CMS custom records to add content to your site, NetSuite recommends using SMT for adding or editing content.

Delete CMS Content

The CMS Content record lets you delete SMT content from your site. When you delete a CMS Contents record, the corresponding CMS custom record is also deleted, and the content is immediately and permanently removed from the site.

To delete a CMS Contents record:

  1. Go to Lists > Web Site > CMS Contents.

  2. Click Edit for the record you want to delete.

  3. Select Delete from the Actions menu.

  4. When asked if you are sure you want to delete the record, click OK.