# config/packages/nowo_tag_input.yaml
nowo_tag_input:
value_format: array
trim: true
duplicates: false
dropdown_enabled: true
placeholder: ''
form_theme: 'bootstrap_5_layout.html.twig'| Key | Default | Description |
|---|---|---|
value_format |
array |
Model format: array or string (comma-separated) |
trim |
true |
Trim whitespace from each tag |
pattern |
null |
Optional regex pattern (without delimiters) |
whitelist |
[] |
Allowed tag values |
duplicates |
false |
Allow duplicate tags |
max_tags |
null |
Maximum number of tags |
dropdown_enabled |
true |
Enable Tagify dropdown for whitelist |
placeholder |
'' |
Default placeholder |
form_theme |
form_div_layout.html.twig |
Twig form theme base layout |
Supported values:
form_div_layout.html.twigform_table_layout.html.twigbootstrap_5_layout.html.twigbootstrap_5_horizontal_layout.html.twigbootstrap_4_layout.html.twigbootstrap_4_horizontal_layout.html.twigbootstrap_3_layout.html.twigbootstrap_3_horizontal_layout.html.twigfoundation_5_layout.html.twigfoundation_6_layout.html.twigtailwind_2_layout.html.twig
Translation domain: NowoTagInputBundle (CamelCase, matching the bundle name).
The bundle ships YAML files for en, es, de, fr, it, nl, and pt under src/Resources/translations/. Symfony loads application translations first; missing keys fall back to the bundle.
- Use the same domain:
NowoTagInputBundle. - Create a file in your application:
translations/NowoTagInputBundle.<locale>.yaml(or.xlfif your project uses XLF).
- Override only the keys you need. Keys not defined in the app file use the bundle default.
Example — Spanish override:
# translations/NowoTagInputBundle.es.yaml
tag:
placeholder: 'Añade etiquetas y pulsa Enter'- Clear the Symfony cache in dev if translations do not appear:
php bin/console cache:clear.
TagType uses translation_domain: NowoTagInputBundle by default. Override per field with the standard Symfony translation_domain form option.
REQ-TWIG-001. Namespace: NowoTagInputBundle. Full procedure, freeze rule, and the overridable <subpath> table: USAGE.md — Overriding templates. Theme selection follows form_theme — form_theme.