Jump to:

10931 Posts in 2614 Topics by 1810 members

All other Modules

SilverStripe Forums » All other Modules » memberprofiles - Date, SS_Datetime

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 586 Views
  • danzzz
    Avatar
    Community Member
    175 Posts

    memberprofiles - Date, SS_Datetime Link to this post

    hi there,

    I'm using ajshorts memberprofiles module. I add some more fields to the member class (DataObjectDecorator).
    I added a field for "birthday" with datatype "Date" and a field "active_time" with datatype "SS_Datetime".

    In the frontend, when the forms are generated, there are only normal textfields for the datefields. How
    can I change this to be datefields with datepicker?

    thx
    daniel

  • danzzz
    Avatar
    Community Member
    175 Posts

    Re: memberprofiles - Date, SS_Datetime Link to this post

    $fields->removeByName('birthday');
    $birthdayfield = new DateField('birthday','Geburtstag');
    $birthdayfield->setConfig('showcalendar', true );
    $fields->push($birthdayfield);

    586 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.