Account selection¶
Description¶
Let you assign multiple account from the account section to the page.
Parameters¶
Parameter |
Type |
Description |
---|---|---|
item_disabled_condition |
string |
Allows to set a jexl expression that evaluates if an item should be displayed as disabled. Disabled items cannot be selected. |
allow_deselect_for_disabled_items |
bool |
Defines if the user should be able to deselect an item that is disabled. Default value is true. |
sortable |
bool |
Defines if the user should be able to sort the selected items. Default value is true. |
request_parameters |
collection |
Collection of parameters that are appended to the requests sent by the selection. |
resource_store_properties_to_request |
collection |
Collection of property names. The value of the respective properties are appended to the requests sent by the selection. |
min |
string |
The minimum number of selected accounts |
max |
string |
The maximum number of selected accounts |
Return value¶
See the Account for available variables and functions.
Example¶
<property name="accounts" type="account_selection">
<meta>
<title lang="en">Accounts</title>
</meta>
</property>
Twig¶
{% for account in content.accounts %}
<h3>{{ account.name }}</h3>
{% endfor %}