Tag Selection

Description

Shows a simple text line with an autocomplete feature for the available Tags in the system. Tags can be managed in the settings section of Sulu. The assigned tags will be saved as an array.

Note

Tags which do not already exist will be created.

Note

This content type is rarely needed because the Excerpt and Taxonomies allows to assign tags to pages.

Parameters

Parameter Type Description
min string The minimum number of selected tags
max string The maximum number of selected tags

Example

<property name="tags" type="tag_selection">
    <meta>
        <title lang="en">Tags</title>
    </meta>
</property>

Twig

{% for tag in content.tags %}
    {{ tag }}
{% endfor %}