Results 1 to 7 of 7

Thread: core modification

  1. #1
    User
    Join Date
    07-08-10.
    Location
    Madrid, Spain
    Posts
    145

    Default 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.
    Eric
    Contao 2.8 -> 3.0
    Evizer Web Agency

  2. #2
    User
    Join Date
    08-07-09.
    Location
    Kent, United Kingdom
    Posts
    92

    Default 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.

  3. #3
    User
    Join Date
    07-08-10.
    Location
    Madrid, Spain
    Posts
    145

    Default 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
    Eric
    Contao 2.8 -> 3.0
    Evizer Web Agency

  4. #4
    User
    Join Date
    06-19-09.
    Posts
    328

    Default 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
    Consulenza Contao CMS https://www.intco.it

  5. #5
    User
    Join Date
    07-08-10.
    Location
    Madrid, Spain
    Posts
    145

    Default 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
    Eric
    Contao 2.8 -> 3.0
    Evizer Web Agency

  6. #6
    User
    Join Date
    06-19-09.
    Posts
    328

    Default 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
    Consulenza Contao CMS https://www.intco.it

  7. #7
    User
    Join Date
    07-08-10.
    Location
    Madrid, Spain
    Posts
    145

    Default Re: core modification

    Thank's I'll have look.
    Eric
    Contao 2.8 -> 3.0
    Evizer Web Agency

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •