Create a custom page in Content Hubs using template pages


About

Use the Templatepages and Custompages modules to create custom pages for your Content Hub, such as landing pages, campaign pages, event pages, and homepages.

First, create and configure the page in the Templatepages module. Then publish it by assigning a URL and permissions in the Custompages module.

This feature requires the Theming module, Templatepages module, and Custompages module to be enabled

Create a custom page

Create the page

  1. Go to your Configuration Management console and click on the Templatepages module. You can also navigate to it directly using a link: https://{your_site_URL}/admin/config/tab/templatepages.
  2. The Templatepages page opens.
  3. Click the +Add TemplatePage button.
  4. Additional fields display.

  5. Give your page a name, set the navigation type, and set the hero type.
  6. Click Save

For more details, see the Templatepages module article.

Enable the page

  1. Navigate to the custompages module at https://{your_site_url}/admin/config/tab/custompages.
  2. Click the +Add CustomPage button. 
  3. Click Save. You now have a new page available for you to use with a unique URL.

For more details, see the Custompages module article.

Make the page available from your site

The URL for your page can be used in a few locations, or can be shared via emails and not be directly available from the site.

To make the URL available on the site, use any one of the following modules as an example:

You can also add it as a link to entry or channel descriptions, and even on other template pages.

Examples

Use a custom page as your homepage

There are two ways to set up a homepage in the legacy Video Portal - by using a URL or by using the 'custom page' option:

Option 1: Use a URL

Follow the instructions above to create a template page, and then a custom page with a dedicated URL such as https://site_url/home.

Turn off the home module to work with the template pages. 

In the Navigation module, set the first "pre" element as described below:

  • Type = Link
  • Name = Home
  • value = /home
  • sameWindow = Yes

Option 2: Use a custom page

In the Navigation module, set the first "pre" element as described below:

  • Type = Custom page
  • Name = Home
  • page = Choose the 'home' page you created from the drop-down list

Set up multiple homepages

You can setup multiple homepages for different user groups.

Follow the instructions above to create a few template pages and then custom pages. At this point you should have a few working pages with a dedicated URL for each such as https://site_url/home_en, https://site_url/home_fr.

Turn off the home module to work with the template pages. 

  1. In the Navigation module, set the first "pre" element as described below:
  • Type = Link
  • Name = Home
  • value = /home_en
  • sameWindow = Yes
  • Under the allowedGroups section, choose the group that should see this home. Any user not in that group, will not have this homepage in their navigation bar.
  • Create the next "pre" element (must be the second in the list):
    • Type = Link
    • Name = Home
    • value = /home_fr
    • sameWindow = Yes
  • Under the allowedGroups section, choose the second group.
  • You can continue with this process for more groups. Any user not in these groups will have the next available "pre" elements as their homepage (can be a generic page such as "My Media" or "All Channels").

    Add a registration component

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

    To configure the component, see Templatepages - registration).

    Below is an example of 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
    • None