Conditional pages template

Template, Conditions, Multiple versions, Logical rules, Customization, A/B testing

Description: Allows you to create and manage different versions (templates) of the same standard website page, automatically calling them based on specific conditions defined by the user.

What is it for? (Practical examples)

This tool is essential for advanced user experience personalization and conversion optimization:

  • User personalization: Shows a specific version of the login or cart page only to users who have already made a purchase in the past.
  • Dynamic content: Applies a different layout to a product page if the user comes from a specific marketing campaign or is browsing from a mobile device.
  • Simple A/B testing: Allows testing the effectiveness of two different designs for a landing page without duplicating the entire page in the system.

Main features

  • Creation of multiple versions: It is possible to define an unlimited number of alternative templates for each standard system page (e.g., Homepage, Product Page, Contact Page).
  • Definition of precise rules: Each alternative template is associated with a set of logical conditions (e.g., "If the user is logged in AND the page is displayed as a popup").
  • Integration with the Pages editor: Once the conditional template is created, its content can be edited and managed directly through the system's standard Pages management module.
  • Selective activation: It is possible to enable or disable the use of conditional templates for specific page types with a simple switch.

How to configure

Configuration takes place in the Settings > General section of the module.

1. Page activation

First, you need to enable the management of conditional templates for the desired page type.

1. Locate the standard page you want to customize (e.g., "Product Page").

2. Use the Activate or Deactivate buttons in the header of the panel to enable or disable the feature.

2. Creation of conditional templates

Within each activated page panel, you can add alternative templates.

FieldDescription
Template nameThe name that will identify this specific version. This name will be visible in the Pages module for content editing.
Under what circumstances do you want to call this template?Use the condition builder to define the rules. Conditions can be based on user data, navigation parameters, or whether the page was loaded as a popup.

Note: Use the Add template button to create new versions. The system checks conditions from top to bottom: the first template whose conditions are true is loaded.

Automatic integrations

This module works closely with the Pages management system and the website rendering engine:

Content management

After configuring the templates in this module, the system automatically registers them as new editable pages. You can then access the Pages module and search for the template by the name you assigned to edit its content, layout, and SEO settings.

Dynamic calling

When a user visits a standard page (e.g., /product/123), the system performs the following steps in real time:

1. Checks if the page was loaded inside a popup.

2. Analyzes the conditions defined for all alternative templates.

3. If a condition is met, the content of the standard page is immediately replaced with the content of the corresponding conditional template.

Context variables

The system supports the {is-popup} condition, which allows creating a specific template only for pages opened in a modal or popup window, enabling design optimization for that context.