Posted By

furehead on 05/18/11


Tagged

date silverstripe


Versions (?)

datefield


 / Published in: PHP
 

German Date Field Selector Silverstripe

  1. $dateFieldConfig = array(
  2. 'showcalendar' => true,
  3. 'jslocale' => 'de_DE',
  4. 'dmyfields' => false,
  5. 'dmyseparator' => '&nbsp;<span class="separator">.</span>&nbsp;',
  6. 'dateformat' => null,
  7. 'datavalueformat' => 'yyyy-MM-dd',
  8. 'min' => null,
  9. 'max' => null
  10. );
  11. $dateField = new DateField('TerminDatum','Veranstaltungsdatum (optional)');
  12. $dateField->setConfig('showcalendar', true);
  13. $dateField->setConfig('jslocale', 'de_DE');
  14.  
  15.  
  16. $fields->addFieldToTab('Root.Content.Teaser', $dateField);

Report this snippet  

You need to login to post a comment.