21286 Posts in 5733 Topics by 2602 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 655 Views |
-
Autopopulate Date

12 March 2009 at 6:41am
Hi all,
I'm looking to have the date automatically added to the field when a new news item is created just in case I have any lazy users who don't bother or forget.
Is this possible/can you give me a clue?
Thanks in advance,
Pnub -
Re: Autopopulate Date

12 March 2009 at 7:26am
Hi Pnub,
Does populateDefaults() do what you want?
http://doc.silverstripe.org/doku.php?id=recipes:populatedefaultsBen
-
Re: Autopopulate Date

13 March 2009 at 3:11am
Hi Ben,
Thanks, that does look like what I want. Hope would I implement that? ie: where would i put the code?
Thanks again,Pnub
| 655 Views | ||
|
Page:
1
|
Go to Top |

