Adding Rules to Pages

Last Updated: Nov 9, 2021
documentation for the dotCMS Content Management System

Rules can be added to existing dotCMS Pages. Once a Page has been saved, it has an identifier in the system and can be assigned Rules, Permissions, etc. To apply a Rule on a Page, simple edit an existing Page, click on the Rules tab, and add the Page specific Rule Actions that should execute based on the Ruleset Conditions on the Page being edited.

Page level Rules are executed each time a front end visitor lands on the Page. However, Rules can also be more broadly assigned at the host level. Before assigning Rules to Pages, please refer to the Rules documentation.

Behavior of Rules on Pages

  • The Rule is evaluated each time the Page is visited
  • Page Rules only execute on the backend LIVE mode, not on the EDIT or PREVIEW modes.
  • Page Rules only execute on Published Pages.
  • When a Page is copied, the Page Rule is copied.
  • When a Page is deleted, the Page Rule is deleted.

Edit a Rule

Please Note: If a Rule sets a property on the Marketing→Rules portlet, AND the SAME property is also being set by a Page Rule, then the Page level assignment of the property will have priority and set the property.

For more information, see the Rules, Actions, and Conditions documentation.

On this page

×

We Dig Feedback

Selected excerpt:

×