User conditional container
A container that is only displayed if the logged-in user fulfils a certain criterion.
It can be used to show different content to a logged in user from guest who is not logged in.
It can be used to show different content based on data.
You can use user selection criteria by selecting a column from Data target with unique attribute and provide any unique attribute.
You can also use data selection criteria by selecting a column from Data target and provide any unique value from the column.
Example page view
The module is marked in orange
This is how the module works
The module consists of the following tabs
Tab | Description |
---|---|
Data selection | It includes selection of conditional container, selection of data target and selection criteria. |
Visibility condition | It includes the selection of matching database column and value. It also includes the creation of matching component list and alternate component list. |
Data selection
This tab consists of the following:
Content | Description |
---|---|
Type of conditional container | 1.User conditional container 2.Data conditional container |
Data target | Select the data target from the Data tables shown in dropdown. |
User selection criteria | - Displayed after selecting User conditional container |
Database column to match the fetching criteria | Select a column with unique values(by default email) |
Name of the user attribute used for matching | Enter the name of user attribute(column name) selected by you |
Row data selection criteria | - Displayed after selecting Data conditional container |
Column from data target to be used for selection criteria | Select a column with unique values(E.g. - Id) |
Value of above column to be used for matching | Enter one of the values from the selected column that will be used to match with value provided in Visibility condition |
Visibility condition
This tab consists of the following:
Content | Description |
---|---|
Database column name of the matching condition | Select the column that matches the condition given on data selection tab |
Value the condition must match | Enter the value that must match in order to display the component list |
Component list | Add different components for matching condition (These components will be displayed if there is an exact match of the value in selection criteria and visibility condition) |
Alternate Component list | Add different components for unmatched condition (These components will be displayed if the values in selection criteria and visibility condition are different) |
The module can be used in the following templates and page areas:
stage
content
stage
right
bottom
full-width
default
sidebar
sidebar
The blue area indicates that the module is applicable in this content area.