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

4

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>
| improve this answer | |
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.

| improve this answer | |
  • 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? – Judd Franklin Sep 26 '17 at 22:30
  • Is still there is no documentation of craft available macros. – inrsaurabh May 22 '19 at 13:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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