Create a custom page in Content Hubs using template pages


About

A custom page is a page you design and add to your Content Hubs site, such as a landing page, campaign page, event page, or homepage. You build each custom page from a template page.

Creating a custom page has two parts. You build the page in the Templatepages module, and then you publish it by giving it a URL and permissions in the Custompages module. This article walks you through both.

This feature requires the following to be enabled:

Step 1: Create the page

  1. Go to your Configuration Management console, locate the Templatepages module in the left panel, then select it. You can also navigate directly using a link: https://{your_site_url}/admin/config/tab/templatepages
    The Templatepages page displays.

  1. Click +Add TemplatePage.

  2. The template page settings open.

  3. Configure the following:
    • pageName - Enter a name for the page. Other modules show this name when you select a template page.
    • pageTitle - Enter the title shown in the browser tab.
    • pageHeader - Optional. Enter a header to show at the top of the page.
    • navbarType (in the navbarSettings section) - Select Site navigation to use your site's standard navigation, or Clean navbar for a simplified bar with a call-to-action button and a custom logo.
    • HeroType (in the heroUnit section) - Select a hero unit type, or keep Do not use hero if you don't want one.
  4. Click Save.

For more information, see Templatepages module.

Step 2: Publish the page

  1. Go to the Custompages module. You can also navigate directly using a link https://{your_site_url}/admin/config/tab/custompages
  2. Click +Add CustomPage.
  3. Additional fields display.

  4. Configure the following fields. They connect your template page to its own URL, and control who can see the page:
    • published - Leave this set to No while you work on the page. When the page is ready for users, set it to Yes.
    • pageTemplate - Select the template page you created in Step 1.
    • pageSlug - Enter a unique URL slug for the page. The page URL uses the format https://{your_site_url}/{slug}. For example, the slug events creates https://{your_site_url}/events.
    • permission - Select the minimum user role that can open the page.
  5. Click Save.
  6. Your page is now available at its own URL.

For more information, see Custompages module.

Make the page available from your site

You can share your page's URL directly, for example by email, without adding it to your site. To make the page easy to find on your site, add its URL in one of these modules:

You can also link to the page from media or channel descriptions, or from other template pages.

Use a custom page as your homepage

Your homepage is the first pre element in the Navigation module. To make a custom page your homepage, set that element to open your page. You can do this in two ways:

  • Option 1: Use a URL - The element links to your custom page's URL.
  • Option 2: Use a custom page - You select your custom page from a list.

For both options, create your custom page first, as described in Step 1 and Step 2.

To use template pages as your homepage, turn off the Home module.

Option 1: Use a URL

When you create the custom page, give it a URL such as https://{your_site_url}/home. Then, in the Navigation module, set the first pre element as follows:

  • Type - Select Link.
  • Name - Enter Home.
  • value - Enter /home.
  • sameWindow - Select Yes.

Option 2: Use a custom page

In the Navigation module, set the first pre element as follows:

  • Type - Select Custom page.
  • Name - Enter Home.
  • page - Select your custom page.

Set up multiple homepages

You can give each user group its own homepage. Each user's homepage is the first pre element they're allowed to see. So, to set up a homepage per group, add a pre element for each group's page, and limit each element to its group.

First, create a template page and a custom page for each homepage, as described in Step 1 and Step 2. Give each custom page its own URL, such as https://{your_site_url}/home_en and https://{your_site_url}/home_fr.

To use template pages as your homepage, turn off the Home module.

Then, in the Navigation module:

  1. Set the first pre element as follows:
    • Type - Select Link.
    • Name - Enter Home.
    • value - Enter /home_en.
    • sameWindow - Select Yes.
  2. In the allowedGroups section, select the group that should see this homepage. Users who aren't in that group don't have this homepage in their navigation bar.

  3. Create the next pre element. It must be second in the list. Set it as follows:
    • Type - Select Link.
    • Name - Enter Home.
    • value - Enter /home_fr.
    • sameWindow - Select Yes.
  4. In the allowedGroups section, select the second group.

Repeat these steps for more groups. Users who aren't in any of these groups get the next available pre element as their homepage. This can be a general page, such as My Media or All Channels.

Add a registration component

You can add the Registration component to a custom page or homepage, so users can register without leaving the page.

To configure the component, see Configure components for template pages.

The following example shows the Registration component on a homepage.

Was this article helpful?
Thank you for your feedback!
User Icon

Thank you! Your comment has been submitted.

In this article
Related articles