I've been writing a field plug-in for adding files to articles in com_content. I've got the basics of the field plug-in working ok, extending the JFormFieldFile class
The issue I've hit is, for the com_content form to be able to handle the upload of the file, it needs to have the encoding type of multipart, like enctype="multipart/form-data"
I could create a template override, with the edit.php
file, and change the form tag there, but I'd like the form plug-in to not be dependent on a specific template.
Does anyone know a nice way of changing the form's tag from a field plug-in?
This is the first field plug-in I've written, so am still getting the hang of it.
I've using Joomla 4.0.5, incase that's useful to know.