Default values


Two new types of default values are added to the classic default values: 

  • config' type: the default value corresponds to the value of a configuration parameter. 

In the example below, the default value will be the value of the "runtime.ametys.public" configuration parameter. 

<default-value type="config">runtime.ametys.public</default-value>

For more information on "config" type default values, please consult this page

  • the 'attribute' type: this default value is only available for content attributes specifying a target content type. The default value corresponds to the first content whose attribute has a particular value. 

In the example below, the default value will be the first item found whose subtitle is val1

<cms:default-value type="attribute" name="document-subtitle">val1</cms:default-value>

For more information on the default values for the "attribute" type, please consult this page. 

Back to top