Loading Audio...
Using Publications for Clarity's Projects
Publications provide a robust and flexible way to govern changes to your Liferay solution, especially for complex projects involving multiple teams and diverse content types. Clarity requires all website updates to be thoroughly reviewed and approved before being published to their production environment. For example, each of their marketing campaigns involves multiple teams that contribute different components (e.g., articles, pages, images). In this article, you’ll leverage Publications and workflows to govern the rollout of Clarity’s summer marketing campaign.
Exercise: Enabling Publications
Publications is enabled globally for an the entire Liferay instance. Here you’ll enable publications as the Clarity Admin user.
-
Sign in as the Clarity Admin user.
- Username:
admin@clarityvisionsolutions.com
- Password:
learn
- Username:
-
Open the Global Menu (
), go to the Applications tab, and click Publications.
-
Toggle Enable Publications.
This immediately enables publications for your instance.
-
Verify the Publications Menu appears at the top of the page.
With Publications enabled, you can create a publication of your own. But you’ll need to grant other users access to Publications before they can participate as well.
Exercise: Granting Access to Publications
By default, only administrators can access Publications. Here, you’ll grant Clarity’s marketing team access to Publications as the Clarity Admin user.
-
Open the Global Menu (
), go to the Control Panel tab, and click Roles.
-
Go to Regular Roles tab and click Publications User.
-
Go to the Define Permissions tab and review the role's permissions.
-
Go to the Assignees tab and click User Groups.
-
Click New.
-
Select Marketing and click Add.
Now all marketing users can access Publications and begin creating publications for tracking changes.
Exercise: Creating a Publication for Clarity’s Marketing Campaign
As you’ve learned, Liferay Publications enables the creation of isolated working environments that group changes for specific projects or initiatives. Here you’ll create a publication for Clarity’s marketing campaign and invite a contributor as Clara Murphy.
-
Log out and sign in as Clara Murphy, the marketing manager.
- Username:
clara.murphy@clarityvisionsolutions.com
- Password:
learn
- Username:
-
Expand the Publications Menu and click Create New Publication.
-
Enter these values:
Field
Value
Template
No Template Selected
Name
Summer Campaign 20XX
Description
This campaign highlights our dazzling new sunglasses collection and incredible summer sales.
-
Click Create.
This automatically redirects your site’s hope page and switches you to the new publication. Any changes you make in supported applications are tracked by the publication.Now you can add other team members to the publication as collaborators.
-
Expand the Publications Menu and click Review Changes.
-
Click Invite Users (
).
-
Click the role drop-down menu and select Editor.
-
For People, search for and select Christian Carter.
-
Click Send.
Great! Now Christian Carter can access and contribute to Clara Murphy’s publication. However, before you start working on Clarity’s content updates, the Marketing team needs a custom workflow.
Exercise: Setting Up the Marketing Team’s Workflow
You can use workflows with Publications to ensure content is approved before you publish changes to production. Here you’ll create a workflow for the marketing team as the Clarity Admin user.
-
Log out and sign in as the Clarity Admin user.
- Username:
admin@clarityvisionsolutions.com
- Password:
learn
- Username:
-
Open the Global Menu (
), go to the Applications tab, and click Process Builder.
-
Click Actions (
) for Single Approver and select Duplicate.
-
For title, enter
Single Approver for Marketing
and click Duplicate. -
Select the review task node and restrict its assignment to the Marketing Manager role.
-
Click Update. With the workflow created, you can now apply it to the Marketing team’s articles.
-
Open the Global Menu (
) and go to Clarity Public Enterprise Website.
-
Open the Site Menu (
), expand Content & Data, and click Web Content.
-
Click Actions (
) for the Articles folder and select Edit.
-
Expand Structure Restrictions and Workflow and select the third option.
-
In the drop-down menu, select Single Approver for Marketing.
-
Click Save.
With the workflow applied, the marketing team can begin their work.
Exercise: Creating a Summer Campaign Article
To boost awareness of their subglasses, Clarity wants to draft a new summer campaign article. Here you’ll create this article as Christian Carter.
-
Log out and sign in as Christian Carter, a marketing content contributor.
- Username:
christian.carter@clarityvisionsolutions.com
- Password:
learn
- Username:
-
Return to Web Content application in Clarity’s site.
-
Expand the Publications Menu, click Select a Publication, and select Summer Campaign 20XX.
Now all changes you make will be tracked by the publication.
-
Go to the Articles folder.
-
Click New and select Article.
If this structure does not appear, click More. -
Enter these values:
Field
Value
Title
Elevate Your Summer Look with Our New Collection
Description
Transform your summer style with our brand-new sunglasses collection. Designed to enhance your look and protect your eyes, these shades are the perfect accessory for any occasion.
Image
Path:
liferay-course-publishing-tool-and-content-lifecycle/exercises/summer-campaign-01.png
Headline
Elevate Your Summer Look with Our New Collection
Content
This summer, redefine your style with our stunning new sunglasses collection! "Elevate Your Summer Look" isn't just a tagline; it's a promise. Discover a curated selection of frames, from timeless classics reimagined with modern twists to bold, trend-setting designs. Crafted with premium materials and offering superior UV protection, these sunglasses are more than just an accessory – they're an essential upgrade for your sun-drenched days. Whether you're lounging by the pool, exploring a new city, or enjoying a seaside escape, our new collection will ensure you do it in unparalleled style and comfort. Find your perfect shade and make this summer your most fashionable yet.
-
Click Submit for Workflow and select Submit for Workflow with Permissions.
-
Click Submit for Workflow to confirm.
Great! This initiates the workflow and notifies Clara Murphy of the review task. However, before reviewing it, Christian Carter needs to make a few more updates.
Exercise: Creating a Summer Campaign Page
-
Open the Site Menu (
), expand Site Builder, and click Pages.
-
Click New, select Primary Master Page, enter
Summer Campaign 20XX
for name, and click Add.This redirects you to the new page where you can begin implementing your design.
-
Open the Fragments and Widgets tab (
) in the left side panel.
-
Drag and drop the Home Page fragment composition into the page's central content area.
-
Open the Browser tab (
) in the left side panel and select the Home Page container.
-
In the configuration side panel, to Container Width to Fixed Width.
-
Double click the main banner’s Heading fragment and change its text to
Summer Campaign
. -
Double click the first Image fragment and select the recently uploaded
summer-campaign-01.png
file. -
Double click the second Image fragment and upload this file:
liferay-course-publishing-tool-and-content-lifecycle/exercises/summer-campaign-02.png
. -
Click Publish.
Great! With the new page complete, Clara Murphy can review and publish Christian Carter’s changes.
Exercise: Approving the Summer Campaign Changes
Based on Clarity’s Publications configuration, all pending workflow tasks must be reviewed and approved before publishing. Here you’ll finish approve Christian Carter’s new article as Clara Murphy.
-
Log out and sign in as Clara Murphy.
- Username:
clara.murphy@clarityvisionsolutions.com
- Password:
learn
- Username:
-
Click the user profile icon, go to Notifications, and click the workflow message.
NOTE
If you’re unable to click the notification message, ensure you’re in the Summer Campaign 20XX publication. -
Click Actions
() for the workflow task and select Assign to Me.
-
Enter a comment and click Done.
-
Review the changes, then click Actions
() for the workflow task and select Approve.
-
Enter a comment and click Done.
With the article approved, you can now publish your changes!
Exercise: Publishing the Summer Campaign
Publications enable precise control over who can release changes to the live site. Only users with the appropriate permissions can initiate the publishing process for a publication. Here you’ll publish the Summer Campaign 20XX publication manually as Clara Murphy.
-
Expand the Publications Menu and click Review Changes.
The default view displays a complete list of all changes tracked by the publication, though you can filter results to focus on key changes.
-
Click Filter and select Types.
-
Toggle Exclude, check Fragment Entry Link, and click Add Filter.
This excludes fragment entry links from the list of changes.
-
Click the Summer Campaign 20XX page to view details.
This provides a complete preview of the page. Since the page is new, there is no previous version for comparison. However, if you had updated an existing page, you could view both versions side by side.
-
Click Publish.
-
Verify there are no conflicts and click Publish to confirm.
This redirects you to the History tab where you can view the process of your publishing process.Once finished, your changes are applied to Production! The publication is now inactive, though you can view it in your publishing history and revert it if necessary.
Congratulations! You’ve enabled and used Publications for Clarity’s summer campaign.
Conclusion
Liferay Publications provides a flexible and powerful solution for managing complex content projects and their release to live environments. With it, your team members can track changes in separate working environments and publish those changes on their own timeline.
Next, you’ll explore how to manage content changes across separate servers using Remote Live Staging.
Capabilities
Product
Education
Knowledge Base
Contact Us