... 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.
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 wholeinput
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.