Default page module

This article covers default page modules and describes how to add them to page templates in Microsoft Dynamics 365 Commerce.

The default page module is a special module that becomes the root container of a page and can be added only to a template's Body slot. The default page module defines the core slots (Header Slot, Sub Header Slot, Main Slot, Sub Footer Slot, and Footer Slot) that appear in the Commerce site builder page editor, as shown in the following example illustration.

Page module slots.

The Commerce module library provides only one type of default page module. However, you can use the Commerce online channel extensibility software development kit (SDK) to create additional, custom default page modules as you require.

Page module properties

Property name Values Description
Skip to main content text Text The link text that should appear in the "skip to main content" link on the page. The default value is Skip to main content.
Theme A theme that is selected in a list of available themes The theme to use for the pages that are derived from this template.

Note: This property has been deprecated and will be removed in a future release. Themes should be set only at the site level.

Requires sign-in? True or False This Boolean property controls whether access to the page requires user sign-in. If it's set to True, users who aren't signed in will be redirected to the sign-in page.

Add a default page module to a template

To add a default page module to a template, follow these steps.

  1. In Commerce site builder for your site, select Templates.

  2. Select a template, and then select Edit.

  3. In the Body slot, select the ellipsis (...), and then select Add module.

    Adding a new module.

  4. In the Select modules dialog box, select the Default Page module, and then select OK.

    Adding a default page module.

After the default page module is added, it should resemble the example in the following illustration. The module can now be configured, and the template can be saved and published.

Default page module added.

Additional resources

Module library overview

Page summary modules

External and inline script modules

Metatags module