Hi,
the default value of a class in a field label is 'inline'.
How can I change this value through the form setup in the frontmatter.
Thanks in advance.
Community guidelines
Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.
Solved by Joachim Liedtke View solution
Hi,
the default value of a class in a field label is 'inline'.
How can I change this value through the form setup in the frontmatter.
Thanks in advance.
It seems, that there is no default option to address a label's class via frontmatter settings - WITHOUT overwriting '/user/plugins/form/templates/forms/default/field.html.twig' by your own version in your theme's templates.
There is a Twig Varible 'field.labelclasses' which can be used for that.
Log in to reply.
| Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| 13 | 1139 | 4 months ago | ||
| 0 | 63 | 5 months ago | ||
| 9 | 137 | 6 months ago | ||
| 7 | 112 | 7 months ago | ||
| 10 | 131 | 7 months ago |