Start page
Start page

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

TRANSLATED property

Checks whether the setting "Page is completely translated to this language" is activated

Page completely translated

The setting “Page is completely translated to this language” can be activated for a form (only at the page level in the Page Store). By activating this option, the editor can define whether the contents for the corresponding language have already been fully translated. If the option is deactivated, the contents in the corresponding language are not taken into account when generating the project.

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

This setting is related, at the page level, to the setting “include this section in the output” at the section level. This can be checked using the INCLUDED attribute.

Note: depending on the configuration, individual elements of a form may be language dependent and others may be language independent. In the case of a FS_LIST type element component, for instance, the FS_LIST itself can be language dependent, but the FS_LIST subforms may be language independent. If the language tabs are displayed within the language independent subform (via the show-language-tabs parameter for section lists) by mistake, the configuration is incorrect, which, in conjunction with a rule definition, can prevent the ability to save the corresponding form.

Important The TRANSLATED property (<PROPERTY source="#global" name="TRANSLATED"/>) is not available within link templates.

Examples

A form element is displayed if the page is completely translated

The following form contains two design elements of type CMS_GROUP with different form contents. A dynamic form is to be used to ensure that just one specific form content is shown depending on the setting “Page is completely translated to this language”.

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

  • If the form was opened in the Page Store AND the option “Page is completely translated for this language” was enabled, form content A is shown.
  • If the form was opened in the Page store AND the option “Page is completely translated for this language” was deactivated, form content B appears.

...
<ON_EVENT>
<WITH>
<AND>
<EQUAL>
<PROPERTY source="#global" name="STORETYPE"/>
<TEXT>pagestore</TEXT>
</EQUAL>
<!-- global property: TRANSLATED -->
<PROPERTY source="#global" name="TRANSLATED"/>
<!-- /global property: TRANSLATED -->
</AND>
</WITH>
<DO>
<PROPERTY source="#form.A" name="VISIBLE"/>
</DO>
</ON_EVENT>

<ON_EVENT>
<WITH>
<AND>
<EQUAL>
<PROPERTY source="#global" name="STORETYPE"/>
<TEXT>pagestore</TEXT>
</EQUAL>
<NOT>
<!-- global property: TRANSLATED -->
<PROPERTY source="#global" name="TRANSLATED"/>
<!-- /global property: TRANSLATED -->
</NOT>
</AND>
</WITH>
<DO>
<PROPERTY source="#form.B" name="VISIBLE"/>
</DO>
</ON_EVENT>
...

© 2005 - 2015 e-Spirit AG | All rights reserved. | Last change: 2014-03-19