SEEWARNING Before creating your site, it is advised to read the documentation:Before beginning.


The token 'Conditioned block' makes it possible to manage the dynamic display of the content of HTML pages as a function of criteria defined by setup.
For instance: modifying the content of an HTML menu taking into account whether the user is logged in or not.
To do so, the token 'Conditioned block is inserted in the HTML page, just as for the token Blocks.

During the dynamic generation of the page, the XTEND engine evaluates the condition (logical expression) associated with the token:

  • If the evaluation is verified: the 'child' tokens of the block (tokens delineated by the start and end of the block) are carried out to generate the HTML code corresponding to the block.
  • If the condition is not verified: the 'child' tokens of the block are not taken into account and the HTML code is not displayed.

For a token hiding to HTML code instead of displaying it, the principle is the same.

The HTML setup 'xnot' indicates that the reverse condition must be evaluated, that is: hiding the HTML code instead of displaying it:

<!--Conditioned sections-->
<!adx="ADISPUSERLOGGEDIN">
<!--HTML code displayed if the user is logged in'-->
<!adx="ADISPUSERLOGGEDIN">
<!--Reverse conditioned sections-->
<!adx="ADISPUSERLOGGEDIN:xnot">
<!--HTML code displayed if the user is not logged in'-->
<!adx="ADISPUSERLOGGEDIN">

Prerequisites

SEEREFERTTO Refer to documentation Implementation

Screen management

Header

Tab General

Tab Selection

Formula

The condition is verified if the evaluation of the formula is true.

The Formula block is used to enter the logical expression to be evaluated.

  • Operand no.1 is of type 'MonBloc.MonChamp'.
  • The entry of the value of operand no.2 is identical to that of the selection criteria of action setups.

Reports

By default, the following reports are associated with this function :

  PRTSCR : Screen print

This can be changed using a different setup.

Specific Buttons

Validation

This button is used to update the XTEND dictionary in XML format.

The X3WEB server takes into account only the dictionary with this format.

There is one XML file per dictionary.

For instance, the ACT.xml file corresponds to all the web actions for the current web site.

Copy

This button is used to copy a conditioned block.

Error messages

The only error messages are the generic ones.

Tables used

SEEREFERTTO Refer to documentation Implementation