Text block module
This article covers text block modules and describes how to add them to site pages in Microsoft Dynamics 365 Commerce.
A text block module is a module that is used to add textual content. This content can be informational or promotional.
Text block modules are driven by data from the content management system (CMS) and can be put on any page. They are stand-alone modules that don't depend on page context or any other modules.
Examples of text block modules in e-Commerce
Text block modules can be used in the following ways:
- To showcase product features on a product details page.
- For informational purposes on any page. For example, they can explain the benefits of loyalty programs, describe shipping and return policies, answer frequently asked questions, or provide "about us" content.
- To add custom messages on a product details page. (for example, "Free shipping for orders over $50").
- For disclaimers and contact details on product details pages, cart pages, checkout pages, and other pages (for example, "Shipping and returns are subject to store policies").
The following image shows an example of a text block module that is used on a home page.
Text block module properties
Property name | Value | Description |
---|---|---|
Rich text | Rich text | Paragraph text. Some basic rich text capabilities are supported, such as bold, underlined, and italic text. |
Custom class name | A Cascading Style Sheets (CSS) class name | The name of a custom CSS class that a developer provides to format this module. The class name should be defined in the theme pack. |
Font size | Small, Medium, Large, or X-Large | The font size of the content. |
Add a text block module to a page
To add a text block module to a new page and set the required properties, follow these steps.
- Go to Templates, and select New to create a new template.
- In the New template dialog box, under Template name, enter Content template.
- In the Body slot, select the ellipsis (...), and then select Add module.
- In the Select modules dialog box, select the Default page module, and then select OK.
- Select Save, select Finish editing to check in the template, and then select Publish to publish it.
- Go to Pages, and select New to create a new page.
- In the Create a new page dialog box, under Page name, enter Content page, and then select Next.
- Under Choose a template, select Content template, and then select Next.
- Under Choose a layout, select a page layout (for example, Flexible layout), and then select Next.
- Under Review and finish, review the page configuration. If you need to edit the page information, select Back. If the page information is correct, select Create page.
- In the Main slot of the new page, select the ellipsis (...), and then select Add module.
- In the Select modules dialog box, select the Container module, and then select OK.
- In the property pane for the container module, set the Width property to Fill container.
- In the Container slot, select the ellipsis (...), and then select Add module.
- In the Select modules dialog box, select the Text block module, and then select OK.
- In the property pane of the text block module, add text to the Rich text field.
- Select Save, and then select Preview to preview the page.
- Select Finish editing to check in the page, and then select Publish to publish it.