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   1615 Views

Avatar
Daminipo

Community Member, 14 Posts

23 July 2008 at 8:26pm

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

Community Member, 34 Posts

23 July 2008 at 9:26pm

Hi

Maybe this post would help you

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

Avatar
Daminipo

Community Member, 14 Posts

23 July 2008 at 9:38pm

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!