File field type help textCreated 5 years ago by twopiers
Hi, I have a simple file field in my module called 'Image', nothing fancy. I want to add some help text in the Admin area that gives some simple instructions regarding allowed file types, preferred image dimensions, etc. Can I do this? If so, do I do this as part of the field definition or part of the assignment definition?
That is what the
instructionstranslations key is for.
warningis another that might be helpful.
Via CP there are fields for this on both fields and assignments but for custom addons just define them in your
field.phptranslation file and it'll get picked up automatically by default: https://github.com/anomalylabs/pages-module/blob/2.3/resources/lang/en/field.php#L17-L18