twopiers - 2 months ago

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?

Thanks!

ryanthompson - 2 months ago

That is what the instructions translations key is for. warning is 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.php translation 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

twopiers - 2 months ago

Perfect. Thanks Ryan!