4

I'm trying to find any documentation on the usable forms from {% import "_includes/forms" as forms %}
so for example I have no idea what the difference is between elementSelect and select or how I get the options in there

Thanks for your help

2 Answers 2

5

For anyone looking for more information, you can find all of the form macros for _includes/forms here:

/craft/app/templates/_includes/forms.html

and the child templates here:

/craft/app/templates/_includes/forms/<filename>
1

There currently is no documentation for Craft's own template includes and macros.

Your best bet is to do a global search through the app folder and see how Craft is using them internally.

2
  • Is this still the case? I am currently working through the use of a select field in a plugin. Is there a format through which I could help provide some documentation for the benefit of the CMS user base? Sep 26, 2017 at 22:30
  • Is still there is no documentation of craft available macros.
    – inrsaurabh
    May 22, 2019 at 13:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.