Create Custom CMS Page Types in SuiteCommerce
Create and register custom CMS page types in SuiteCommerce for enhanced website layouts and extensions.
TL;DR Opening
Creating custom CMS page types in SuiteCommerce allows Site Management Tools (SMT) administrators to manage various page layouts effectively. This process includes defining new page types, creating templates, and utilizing the Extensibility API to enhance website content.
What Are Page Types?
Page types in SuiteCommerce serve as foundations for web pages. They allow administrators to introduce different layouts and functionalities for their online presence. Admins can designate a default landing page or customize newly created page types through extensions. Additionally, they can edit existing pages' layouts, enhancing the site's overall appeal.
Steps to Create Page Types
To successfully create and manage CMS page types, follow these essential steps:
-
Set Up Your Extension
To create a new CMS Page Type record, first modify themanifest.jsonfile of your extension. Initially, this record must be created manually for testing and development. Once included in a bundle, the extension automatically creates the CMS Page Type upon installation.- Add a CMS Page Type Record
-
Create a View
Develop a JavaScript file that extendsPageType.Base.View.js. This is critical for rendering the new page type instance.- Create a View to Render a Registered Page Type
-
Create a Template
Define a default layout for your registered page type through a dedicated template.- Site Management Tools Templates and Areas
-
Register Your Page Type
Use the Extensibility API to register your newly defined page type, making it available within SMT.- Register a Page Type
-
Register Alternative Layouts
You can set up alternative templates to provide various layout options for users creating or editing pages.- Register a Template
-
Create Template Thumbnails
Each template must have an associated thumbnail image to show options in the SMT when creating a new page.- Create Layout Thumbnails
-
Deploy Your Changes
After testing on a local server, deploy your extension files to your account. Ensure the extension is activated on a domain for testing within SMT.- Deploy an Extension to NetSuite
-
Use the Layout Selector
Finally, log into SMT and utilize the Layout Selector to either create new pages or enhance existing ones.- Site Management Tools Page Layout Selector
Key Attributes of CMS Page Types
When creating a CMS Page Type record, consider the following attributes:
| Attribute | Description |
|---|---|
| Name | An internal identifier for the page, not visible to site visitors. |
| Display Name | The external identifier that users see when selecting a page type. |
| Description | A short description of the page type. |
| Base URL Path | Sets the URL structure for pages of that type (e.g., mysite.com/blog/[page-url]). |
| Custom Record Type | Links a Custom Content Type to the page type, allowing for additional fields and resources. |
| CMS Creatable | Determines if the page type is shown when creating a new page (Yes/No). |
| Inactive | Marks the page type as inactive, preventing new page creation but allowing existing pages. |
Who This Affects
- Administrators: Responsible for setting up and managing page types in SuiteCommerce.
- Developers: Tasked with creating extensions that enhance page functionalities.
Key Takeaways
- Creating custom CMS page types enhances the versatility of the website.
- Administrators can define multiple layouts and templates for various content needs.
- The Extensibility API is essential for registering new page types and templates.
Frequently Asked Questions (4)
What prerequisites are necessary before creating a custom CMS page type in SuiteCommerce?
Do I need to register custom CMS page types with the Extensibility API for them to be available in SMT?
How can I provide alternative layout options for custom CMS page types?
What does the 'CMS Creatable' attribute signify when creating a CMS Page Type record?
Was this article helpful?
More in Commerce
- SuiteCommerce CAPTCHA Configuration Options and Setup
Configure SuiteCommerce CAPTCHA for enhanced security. Enable CAPTCHA for registration, login, guest checkout, and orders.
- Single Sign-On Integration for NetSuite Web Stores
Implement inbound single sign-on integration for NetSuite web stores using SAML or OpenID Connect for seamless access.
- Facets Management for Commerce in NetSuite
Facets management in NetSuite Commerce optimizes item search filters, enhancing performance and improving user experience.
- SuiteCommerce Analytics Data and Cookie Consent Integration
SuiteCommerce Analytics Data enables tracking of shopper behavior. This requires a cookie consent extension for user preferences.
Advertising
Reach Commerce Professionals
Put your product in front of NetSuite experts who work with Commerce every day.
Sponsor This Category