Configuring Clarity’s Site

Now that you have a local copy of Clarity’s public enterprise website, you can begin configuring it. Clarity’s website aims to be accessible and user-friendly by all, engaging the full spectrum of their global audiences.

In this lesson, you’ll learn about critical settings like membership types, localization, and accessibility.

Configure the public enterprise website.

Site Membership

Liferay provides three different types of site membership: open, restricted, and private. This configuration determines how freely users can join your site.

  • Open: Users can join and leave the site whenever they want.
  • Restricted: Users must request membership to join the site.
  • Private: Site administrators must explicitly invite and add users for them to join the site.

Choosing the appropriate membership type establishes the first level of security. It sets a baseline for user access to site content, enabling you to restrict sensitive data and content exclusively to site members.

Determine the site's membership type.

Since Clarity’s website is a public enterprise website, it should be open and accessible to a wide audience. This way, guests can become members to receive updates on Clarity’s products, sign up for events, submit distributor applications, and more. As such, Clarity will select the Open membership type, enabling users to join and leave freely.

Localization

In addition to site membership, Clarity wants to explore how to best reach their global audience. Liferay provides robust localization features for creating websites that speak the language of your users. From configuring available site languages to localizing site URLs, you can help ensure Clarity’s messages resonate with their international visitors. By default, every site uses the languages enabled at the instance level, but Clarity wants to limit the languages available in their site.

Manage available site languages.

Virtual Host

Setting the virtual host connects a domain name (e.g., www.helloworld.com) to a site. This can be a full domain or a subdomain (e.g., partners.helloworld.com), so you can differentiate between multiple sites on the same Liferay DXP server.

NOTE
To direct traffic to virtual hosts set in Liferay, you must update your domain’s DNS settings to route to your Liferay DXP instance’s IP address.

Set the site's virtual hosts.

Clarity wants to set their site’s virtual host to www.clarityvisionsolutions.com. They also want to set a virtual host for Spanish (www.solucionesdeclaridad.com) to better engage their international audience.

Accessibility

Site accessibility is essential for ensuring everyone can access and interact with your website. Liferay provides an accessibility menu to make it easier for users to enable accessibility properties. Once enabled, users can access the menu by pressing Tab twice and then pressing Enter.

Enabling the accessibility menu provides users access to these configurations:

  • Underlined Links: Force underline effect for all links.
  • Increased Text Spacing: Increase horizontal spacing between text characters.
  • Expanded Text: Expand all truncated text.
  • Reduced Motion: Stop all motion and animations.

Press Tab twice and hit Enter to access the accessibility menu.

Accessibility is a core principle that should be woven into the design and development of any public site. Just like Clarity offers premium eyewear for all, their website should be equally inclusive. While enabling the accessibility menu is a good start, you’ll learn more about this topic later in this course.

Exercise: Adding Users to a Site

When you create a public site, all unauthenticated visitors can view its public pages and content by default. For authenticated site members, you can grant additional privileges using site-scoped roles. While most users in your course workspace are already members of the enterprise website, Christian Carter and Harper Robert are not.

Here, you’ll add them to Clarity’s public site as Ian Miller.

  1. Sign in using these credentials:

    • Email: ian.miller@clarityvisionsolutions.com
    • Password: learn
  2. Open the Global Menu (Global Menu) and select Clarity Public Enterprise Website in the right panel.

  3. Open the Site Menu (Site Menu), expand People, and select Memberships.

  4. Click New.

  5. Select Christian Carter and Harper Roberts.

  6. Click Done.
    Great! Now both users are members of the site and you can assign site roles to them.
    Now all 5 Clarity's personas are members of the site.

  7. Click Actions (Actions) for Christian Carter and select Assign Roles.

  8. Select the Site Content Contributor role and click Done.
    This enables Christian Carter to make contributions to Clarity’s website content.

  9. Repeat steps 7-8 to assign the Site Content Contributor role to Harper Roberts as well.

Great! You’ve added two team members to Clarity’s enterprise website. Next, you’ll continue configuring the site to ensure it is public and accessible for their target audience.

Exercise: Configuring the Site

Successful public sites often increase brand awareness, showcase products, and convert visitors to customers. To this end, Clarity wants to set easily findable virtual hosts, empower guests to register as site members, configure select language options, and enable accessibility tools.

Here, you’ll configure these settings as Ian Miller.

  1. Verify you’re viewing the Clarity Public Enterprise Website.

  2. Open the Site Menu (Site Menu), expand Configuration, and select Site Settings.
    Go to Site Settings to configure the site.

  3. Go to Site Configuration and open the Details tab.

  4. Add this description: Elevate Your Brand with Premium Eyewear: Discover premium craftsmanship, innovative lenses, and designs that help your brand stand out.

  5. Set membership type to Open.
    Set the site's membership type to Open.This enables guests to freely access the site’s public pages and content and become site members.

  6. Click Save.

  7. Go to the Site URL tab.

  8. Set the friendly URL to /clarity.
    This URL is used by site pages and is appended to http://localhost:8080/web.

  9. Set the site’s virtual host for the default language to www.clarityvisionsolutions.com.
    Setting the virtual host connects a domain name (e.g., www.helloworld.com) to a site.

  10. Click Add to add an extra virtual host for Spanish with the URL www.solucionesdeclaridad.com.
    This way, Clarity's Spanish speaking audience can access the site using a localized domain. Add a virtual host for Spanish.

    NOTE
    These virtual host settings will not take effect until you’ve either configured your local PC’s hosts file; or, routed your domain’s DNS settings to the Liferay DXP instance’s IP address.
  11. Click Save.

  12. Return to the Site Settings page and go to Localization.

  13. Select the radio button to define a custom default language and additional available languages.
    For now, Clarity only wants to support English (United States) and Spanish (Spain) for content localization on their site.

  14. Use the left arrow () button to remove all languages except English and Spanish.

    TIP
    To select multiple languages at a time, hold the CTRL key.
    Define a custom language configuration.
  15. Click Save.

  16. Return to the Site Settings page and go to Accessibility.

  17. Check the box to enable the accessibility menu.

    Enable the accessibility menu for the website.This empowers users to press Tab twice and hit Enter to access a menu for configuring their accessibility settings.
  18. Click Update.

Congratulations! You’ve configured Clarity’s site settings. Together, these configurations help satisfy Clarity’s basic website needs to fulfill its intended purpose of promoting products to an international audience. Liferay also provides many other site configurations, including SEO, cookie handling, session timeouts.

Next, you’ll update Clarity’s default home page and landing page.

Exercise: Configuring the Instance’s Default Home and Landing Pages

By default, visiting http://localhost:8080/ directs users to the first created site of a Liferay instance. For Clarity, this currently navigates to their default Clarity Vision Solutions site, instead of Clarity Public Enterprise Website.

Here, you’ll update the default home and landing pages for your instance as the Clarity Admin user.

NOTE
Certain instance and system-level settings can only be configured by a user that’s been assigned the Administrator role.
  1. Sign in using these credentials:

    • Email: admin@clarityvisionsolutions.com
    • Password: learn
  2. Open the Global Menu (Global Menu), go to the Control Panel tab, and click Instance Settings.

  3. Under Platform, click Instance Configuration and go to the General tab.

  4. For Home URL, enter /web/clarity.
    This sets the default page displayed when you access http://localhost:8080/.

  5. For Default Landing Page, enter /web/clarity.
    This specifies the page users are redirected to after logging in.

  6. For Default Logout Page, enter /web/clarity.
    This defines the page users are redirected to after signing out.

    Configure the URLs for each navigation field.
  7. Click Save.

Great! Now, when users visit http://localhost:8080/ and log out or log in, they’re directed to the home page for Clarity’s public enterprise website.

Conclusion

Site configurations like membership types, localization, and accessibility are essential for creating inclusive and user-friendly digital experiences. Establishing foundational site settings provides a stable, compliant baseline that is ready to host customer-facing content.

Next, you’ll add new pages to Clarity’s site.

Additional Resources

See official documentation to learn more about site configuration options:

Loading Knowledge