Using Expiration and Review Dates in Web Content
Available: Liferay DXP/Portal 7.4+
You can set expiration and review dates for web content articles to manage time-sensitive content. When enabled, file owners, reviewers, or folder subscribers are notified via email of articles that have reached their expiration or review date at configurable intervals, based on the Web Content system setting.
When an article expires, it is deactivated and cannot be used or edited. To reactivate the article, you must change its expiration date or disable article expiration. While expired, the article cannot be accessed.
By contrast, when an article requires review, it remains available for use. Reaching the article’s review date only triggers user notifications and does not affect the article’s availability.
Enabling Expiration and Review Dates
By default, web content articles never expire or require review. However, you can change this when creating or editing articles.
When editing multiple articles, expiration is done through the toolbar or action menu.
To activate expiration or review, uncheck the Never Expire or Never Review checkbox. The default review and expiration dates are set to one year from the time of activation. Change the dates if needed.
Liferay checks for articles that have reached their expiration or review dates at a specific check interval.
Configuring the Check Interval
By default, Web Content checks article expiration and review dates every 15 minutes. You can customize this.
-
Click Global Menu (
) → Control Panel → System Settings → Web Content → Web Content.
-
Use the Check Interval field to set the minutes between article checks.
-
Click Save when finished.
Now the system checks for expiration or review dates according to the interval you set.
If you require this feature to be disabled, blacklist the component. Do not enter zero or a negative number for the interval.
Configuring Notification Emails
Liferay sends notification emails when a web content article expires, is updated, or requires review. These messages go to the article’s owners, reviewers, and users subscribed to the folder. You can customize the templates provided for these emails.
-
Navigate to the Web Content application in a site or asset library.
-
Click Options (
) in the Application Bar and select Configuration.
-
In the configuration screen, use the options under Notifications to update settings and templates:
Section Configuration Option Description Settings Structures Highlight structures in the Web Content app to simplify content management. Notifications Email From Set the sender name and email address for notification emails. Notifications Web Content Added Configure the email template for newly added content. Notifications Web Content Expired Configure the email template for expired content. Notifications Web Content Moved from Folder Configure the email template for content moved out of a folder. Notifications Web Content Moved to Folder Configure the email template for content moved into a folder. Notifications Web Content Review Configure the email template for content under review. Notifications Web Content Updated Configure the email template for updated content. -
In the Email From option, set the sender name and address for all notification emails. Click Save to apply your changes.
-
To customize an email template, select the desired option and check Enabled to activate it.
-
Enter a subject and body for the email. You can include template variables such as
[$ARTICLE_TITLE$]
to customize the message content.A list of available variables appears under Definition of Terms.
-
Click Save to apply your changes.
Repeat the previous steps to configure other email templates.