How to style custom fieldtypes on frontend #8614
Unanswered
earthwytch
asked this question in
Q&A
Replies: 1 comment
-
So you're using the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone,
I have created a basic fieldtype for a frontend form and successfully added it in the blueprint and it is showing in the frontend form. It is currently getting its styling from
resources/views/vendor/statamic/forms/fields/default.antlers.html
.How/where can I create a custom view for the new fieldtype if my fieldtype was called SpecialThing in
app/Fieldtypes/SpecialThing.php
.I have tried adding:
resources/views/forms/fields/special-thing.antlers.html
resources/views/forms/fields/specialthing.antlers.html
resources/views/forms/fields/special_thing.antlers.html
and:
resources/views/vendor/statamic/forms/fields/special-thing.antlers.html
resources/views/vendor/statamic/forms/fields/special_thing.antlers.html
resources/views/vendor/statamic/forms/fields/specialthing.antlers.html
and even:
resources/views/iextend/forms/fields/special-thing.antlers.html
resources/views/iextend/forms/fields/special_thing.antlers.html
resources/views/iextend/forms/fields/specialthing.antlers.html
But it still only picks up the default view file. Can anybody help save me from spamming this file in every folder?
Beta Was this translation helpful? Give feedback.
All reactions