Single Category selection ========================= Description ----------- Let you assign one category. Categories can be managed in the settings section of Sulu. The selection will be saved as a single id. Parameters ---------- .. list-table:: :header-rows: 1 * - Parameter - Type - Description * - request_parameters - collection - Collection of parameters that are appended to the requests sent by the selection. * - 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. Example ------- .. code-block:: xml Single Category Selection Extended Example ---------------- Following example defines an entry category for the selection tree. .. code-block:: xml Single Category Selection Twig ---- .. code-block:: twig {{ content.category.name }} .. _jexl: https://github.com/TomFrost/jexl