Start page / Template development / Rules / Form properties <PROPERTY/> / Property INCLUDED

INCLUDED property

Checks whether the setting "include this section in the output" is activated

include this section in the output

For a form, the setting “include this section in the output” can be activated (only on the section level in the Page Store). By activating this option, the editor can define whether or not the section's contents in the respective language are to be taken into account during the next generation.

This setting can be checked using a rule. The expression <PROPERTY source='#global' name='INCLUDED'/> can be set in the value determination of the rule definition and checks whether or not the option is set for this section. The expression returns a Boolean value. Since this is a generally applicable form property, the object #global has to be assigned the attribute source.

This setting at the section level is related to the setting “Page is completely translated to this language” at page level. This can be checked with the TRANSLATED attribute.

Examples

A form element is displayed if the section is to be generated in the output

The following form contains two design elements of the type CMS_GROUP with different form contents. A dynamic form is to be used to ensure that only one specific form page is shown depending on the setting “include this section in the output”.

Because this option is only available in the Page Store, two conditions are checked in the value determination.

  • The content of form A is displayed if the form has been opened in the Page Store AND the option “include this section in the output” has been activated.
  • The content of form B is displayed if the form in the Page Store has been opened AND the option “include this section in the output” has been deactivated.

...
<RULE>
<WITH>
<AND>
<EQUAL>
<PROPERTY source="#global" name="STORETYPE"/>
<TEXT>pagestore</TEXT>
</EQUAL>
<PROPERTY source="#global" name="INCLUDED"/>
</AND>
</WITH>
<DO>
<PROPERTY source="#form.A" name="VISIBLE"/>
</DO>
</RULE>

<RULE>
<WITH>
<AND>
<EQUAL>
<PROPERTY source="#global" name="STORETYPE"/>
<TEXT>pagestore</TEXT>
</EQUAL>
<NOT>
<PROPERTY source="#global" name="INCLUDED"/>
</NOT>
</AND>
</WITH>
<DO>
<PROPERTY source="#form.B" name="VISIBLE"/>
</DO>
</RULE>
...

© 2005 - 2024 Crownpeak Technology GmbH | All rights reserved. | FirstSpirit 2024.8 | Data privacy