Adding Pages to Clarity’s Site

Pages are the fundamental building blocks of website structures. Each page is a canvas for designing engaging layouts with content (e.g., text, images, videos) and interactive elements (e.g., forms, widgets). Liferay’s WYSIWYG editor and drag-and-drop elements provide an intuitive and user-friendly experience, so you can implement your vision without writing code. For advanced use cases, you can also create custom page elements using HTML, CSS, and JavaScript. To help you implement your solution, Liferay provides a variety of page types.

In this lesson, you’ll use different page types to implement Clarity’s site map introduced in the first module:

Clarity's website development team has produced this site map for their initiative.

This site structure includes content pages, display pages, and utility pages.

Content Pages

Content pages are used to create content-rich, visually engaging experiences. With an intuitive visual editor and drag-and-drop elements, you can quickly design page layouts, display content, and integrate functionality. Personalize content for specific audiences, manage localized translations, and optimize for all devices with the responsive layout editor. When integrated with Analytics Cloud, you can track content performance metrics and conduct A/B testing, creating page variants and track visitor data (e.g., bounce rate, clicks) to continuously improve engagement. Together, these features make content pages ideal for landing pages, marketing campaigns, and any scenario where presentation and user engagement are crucial.

Create these pages as content pages.

!!! tip “Content Pages vs. Widget Pages” Liferay also provides widget pages, but this course focuses on building user experiences with content pages. Content pages provide superior flexibility and integration with Liferay’s latest content and personalization features, including fragments, collections, segmentation, and client extensions. Widget pages do not support these features.

Display Pages

Display page templates define structures for displaying content at a dedicated URL. When you create or upload content items, Liferay generates a unique friendly URL for accessing it. However, you can only use this URL to view the content if you create one of these templates for displaying it. Display pages are built using the same UI and features as content pages. With these templates, you can establish a consistent visual style for different types of content.

Create these pages as display pages.

Utility Pages

Utility pages handle specific functions within a site. Currently, you can use them to create your site’s default 404 and 500 error pages. They are designed using the same tools and features as content pages. With them, you can ensure that even the errors returned to users maintain corporate branding while being easily maintained. Each site includes out-of-the-box error pages, which you can use or modify as needed.

Create these pages as utility pages.

Exercise One: Adding Content Pages

While logged in as Walter Douglas,

  1. Open the Site Menu (Site Menu), expand Site Builder, and click Pages.

  2. In the Static Pages tab, click New and select Page.

    Add a page.

  3. Select the Blank template.

    Note

    This applies a basic header and footer to an empty content page.

    Select the Blank template.

  4. For name, enter Home and click Add.

    This creates a blank content page and directs you to Liferay’s page editor UI. Here you can access all page building tools and configuration options.

  5. Leave the page blank and click Publish.

    Leave the page blank and click Publish.

  6. Repeat this process for these pages:

    • Sign In
    • Contact Us
    • About Us
    • Products
    • Product List
    • Product Detail
    • Blog
    • FAQ
    • Careers
    • Open Positions
    • Search

    Add these content pages.

  7. Drag and drop Open Positions onto Careers to make it a child of the Careers page.

    Drag and drop Open Positions onto the Careers page.

  8. Repeat this step to create this hierarchy: Products > Product List > Product Detail.

    Create this hierarchy

With these pages in place, create the remaining parts of Clarity’s site structure as display page templates.

Exercise Two: Adding Display Page Templates

While logged in as Walter Douglas,

  1. Open the Site Menu, expand Design, and click Page Templates.

  2. Go to the Display Page Templates tab.

  3. Click New.

  4. Select Blank.

  5. For name, enter Leadership Profile.

  6. For content type, select Web Content Article

  7. For subtype, select Basic Web Content.

    Add the web content display page template.

  8. Click Save.

    This creates a blank display page template that’s linked to the selected content type. Each template has the same page building tools and configuration options as content pages.

  9. Click Publish.

  10. Repeat this process for these pages:

    Name Type Subtype
    Blog Post Web Content Article Basic Web Content
    General Info Web Content Article Basic Web Content
    FAQ Detail Web Content Article Basic Web Content
    Job Opening Detail Web Content Article Basic Web Content

    Create these display page templates.

  11. Click the Actions button (Actions Button) for General Info and select Mark as Default.

    Mark Product Categories and Product Details as default.

We’ll update these templates in Module 7, but for now leave them blank.

Since Liferay sites include 404 and 500 error pages by default, there’s no need to create any utility pages, so Clarity’s page structure is complete.

Conclusion

Congratulations! You’ve laid the foundational page structure for Clarity’s site. Next, you’ll take these blank pages and start designing their layout. But before that, let’s take a moment to review some core concepts for Liferay page design.

Next Up: Understanding Page Design

Ask

Capabilities

Product

DXP

Contact Us

Connect

Powered by Liferay
© 2024 Liferay Inc. All Rights Reserved • Privacy Policy