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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

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

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

Setting Default Value in Backend


Go to End


3 Posts   2222 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

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!