-
core modification
hello
Is it possible to overload a core element? if so could someone give me some clue to do it, or the name of any module that will do something similar ?
for example, I'd like to add the possibility to set an onclick event on the submit button of a form
Thank's in advance.
-
Re: core modification
Hi Eric,
Most core modifications are possible, but if you give some detailed information on what you're trying to achieve then we can better help.
-
Re: core modification
Thank's for your help.
As I said, I'd like to extend the "capabilities" of the submit button of the Form module, with an other module in order to add an "onclick" tag with some parameters that I would have defined before on the back end.
So I don't want to modify core files but hook them to "plug" an add-on.
Regards
-
Re: core modification
Are you talking about the frontend or the backend?
I can not understand if you want to know how to load a javascript file or if you are looking for something else
-
Re: core modification
i'd like to add from the back end parameters in order to generate some more parameters during the creation of the form in the front end.
how could I do to modify the generate function of the FormSubmit, without touching the original file?
Thank's
-
Re: core modification
you can write a custom "form field" widget
a good starting point can be taking a look at some extensions that provide "form fields"
http://www.contao.org/extension-list...m%20field.html
-
Re: core modification