Single Account selection ======================== Description ----------- Let you assign one account from the account section to the page. Parameters ---------- .. list-table:: :header-rows: 1 * - 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. Return value ------------ See the Account_ for available variables and functions. Example ------- .. code-block:: xml Account Twig ---- You need to use the :doc:`../twig-extensions/functions/sulu_resolve_media` if you want to render the account logo image. .. code-block:: twig {% set account = content.account %} {{ account.name }} {% if account.logo %} {% set image = sulu_resolve_media(account.logo, app.request.locale) %} {{ account.name }} {% endif .. _Account: https://github.com/sulu/sulu/blob/2.x/src/Sulu/Bundle/ContactBundle/Api/Account.php .. _jexl: https://github.com/TomFrost/jexl