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.

Example of a text block module.

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.

  1. Go to Templates, and select New to create a new template.
  2. In the New template dialog box, under Template name, enter Content template.
  3. In the Body slot, select the ellipsis (...), and then select Add module.
  4. In the Select modules dialog box, select the Default page module, and then select OK.
  5. Select Save, select Finish editing to check in the template, and then select Publish to publish it.
  6. Go to Pages, and select New to create a new page.
  7. In the Create a new page dialog box, under Page name, enter Content page, and then select Next.
  8. Under Choose a template, select Content template, and then select Next.
  9. Under Choose a layout, select a page layout (for example, Flexible layout), and then select Next.
  10. 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.
  11. In the Main slot of the new page, select the ellipsis (...), and then select Add module.
  12. In the Select modules dialog box, select the Container module, and then select OK.
  13. In the property pane for the container module, set the Width property to Fill container.
  14. In the Container slot, select the ellipsis (...), and then select Add module.
  15. In the Select modules dialog box, select the Text block module, and then select OK.
  16. In the property pane of the text block module, add text to the Rich text field.
  17. Select Save, and then select Preview to preview the page.
  18. Select Finish editing to check in the page, and then select Publish to publish it.

Additional resources

Module library overview

Promo banner module

Carousel module

Content block module

Video player module