Timepicker in the date field

Discussion in 'Subrion CMS Packages Discussions' started by ivanvieira, Jul 15, 2015.

  1. ivanvieira

    ivanvieira New Member

    I wonder if there is a way to configure package installation xml file where a date field must have a time selector , or is there another approach to add the time.

    My package manages bids from city hall , and the time is indispensable.
  2. Vasily_B.

    Vasily_B. Project Manager

    Hi Ivan,

    Sorry, we don't have this feature in our current version. Anyhow, I've just added it to 3.3.5 version.

    you can easily emulate this yourself. One line should be added in includes/classes/ia.admin.extra.php, find this line:
    'use_editor' => $this->_attr('editor', false),

    and add the following line after it:
    'timepicker' => $this->_attr('timepicker', false),

    That's it. Now you can add timepicker attribute to your field in install.xml and it will be displayed as timepicker.

  3. ivanvieira

    ivanvieira New Member


    It works like a charm, tanks a lot.
  4. Vasily_B.

    Vasily_B. Project Manager

    I'm glad to advise. This improvement has been included in our 3.3.5 version :)

    Have a great weekend!

Share This Page