Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive

Our old forums are still available as a read-only archive.

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

Setting Default Value in Backend


Reply

3 Posts   1562 Views

Avatar
Daminipo

23 July 2008 at 8:26pm Community Member, 14 Posts

Hi!

I was wondering if there is some kind of possibility to set a CMS Field to a Default Placeholder Value.
I Have a TextField witch claims for the Author, and I would like to preset this TextField with the current logged in CMS User.

Is there a possibility to make this with the $default array? I can't find out how to get this done...

Would be glad if somebody could help.
:-)

Avatar
cerelac

23 July 2008 at 9:26pm Community Member, 34 Posts

Hi

Maybe this post would help you

http://www.silverstripe.com/site-builders-forum/flat/85210

Avatar
Daminipo

23 July 2008 at 9:38pm Community Member, 14 Posts

Thanks cerelac!
That was exactly what I was looking for.

I could have come to that myself... Just thought completely in the wrong direction.
:-)

Thanks again!