Jump to content


  • Posts

  • Joined

  • Last visited

tuke's Achievements


Newbie (2/6)



  1. If I understand this correctly, the InputFieldDatetime.js javascript code reads the date format from the data-dateformat html property (as shown in the post above). Somehow the date-dateformat property is incorrect. I also found out that the datepicker works correctly in admin section but not in my front-end custom page.
  2. For some reason it is not working in my installation. The input field is generated using: $field = $modules->get("InputfieldDatetime"); $field->label = "Aika"; $field->attr('id+name','time'); $field->required = 1; $form->append($field); // append the field And it outputs: <input id="time" class="InputfieldDatetimeDatepicker InputfieldDatetimeDatepicker3" name="time" type="text" size="25" value='' data-dateformat='yy-mm-dd' data-timeformat='' data-ts='0' data-ampm='1' />
  3. I'm trying to build a date input field with following functionality: - Date can be manually typed using format dd.mm.yyyy - Date can be selected using datepicker (which should output the date in dd.mm.yyyy format) The problem is that the date field only accepts dashes (-) as a separator so the date must be entered using format mm-dd-yyyy. Also, when a date is selected using datepicked, it is outputted in mm-dd-yyyy format. How can I change the format to dd.mm.yyyy? I tried to change the format settings but it had no effect. My settings: I'm using Processwire 2.3.0. EDIT: The datepicker works correctly in admin section but not in my front-end custom page.
  4. I'm trying to create a custom isolated admin interface for adding articles to the site. The new interface should contain only a few input fields (title, content, time and place) and a publish button. When user press the button: - a new child page is generated under 'articles' category. - page name and url is taken from the title-field - all content from input fields are added to the page Basically this will automate page creation so adding a new article is easier and faster. Is there any easy way to implement this?
  • Create New...