You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
... basically kills PHP (probably triggering an infinite loop).
Not only no error message is logged in such situation but the advise (suggested in the above-mentioned documentation) to only extends forms/field.html.twig instead of a specific field's template, forces to copy/paste a lot of boiler-plate code what is clearly suboptimal.
The text was updated successfully, but these errors were encountered:
As per https://learn.getgrav.org/17/admin-panel/extending#adding-a-custom-field, using
prepend
orappend
block.But the checkbox field (and maybe others) overrides the whole
input
block without providing the same extension sub-blocks (namelyprepend
orappend
)A somehow related problem is that create such an override (at
<theme/templates/forms/fields/checkbox/checkbox.html.twig
) simply containing:... basically kills PHP (probably triggering an infinite loop).
Not only no error message is logged in such situation but the advise (suggested in the above-mentioned documentation) to only extends
forms/field.html.twig
instead of a specific field's template, forces to copy/paste a lot of boiler-plate code what is clearly suboptimal.The text was updated successfully, but these errors were encountered: