0 Votes

Properties Displayer Macro

Aviso: Por motivos de segurança, o documento é exibido em modo restrito, pois não é a versão atual. Pode haver diferenças e erros devido a isso.

This macro displays a block with properties name and corresponding values from an object. As an example, it can be used in class sheets.

Example of usage

(% class="row" %)
(((
{{propertiesDisplayer className="Help.Applications.Movies.Code.MoviesClass" title="" backgroundColor="white" properties="title1, longText1" propertyNameClasses="col-sm-12" propertyValuesClasses="col-sm-12" blockClasses="col-sm-8" /}}

{{propertiesDisplayer className="Help.Applications.Movies.Code.MoviesClass" title="Properties" titleStyle="text-align: center; font-size: 16px; font-weight: bold; margin-top: 15px; margin-bottom: 10px;" properties="staticList1, databaseList1, date1, number1, boolean1" blockClasses="col-sm-4" propertyNameClasses="col-sm-3" propertyValuesClasses="col-sm-9" backgroundColor="#f5f5f5" style="border-radius: 10px; line-height: 25px; padding-bottom: 20px;" /}}
)))
(% class="row" %)
(((
== Content ==
{{propertiesDisplayer className="Help.Applications.Movies.Code.MoviesClass" title="" backgroundColor="white" properties="content1" blockClasses="col-sm-12" propertyNameClasses="hide" propertyValuesClasses="col-sm-12" /}}
)))

Result

properties-displayer-1

Parameters

Failed to execute the [velocity] macro. Cause: [The execution of the [velocity] script macro is not allowed in [xwiki:Macros.PropertiesDisplayerMacro]. Check the rights of its last author or the parameters if it's rendered from another script.]. Click on this message for details.