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.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

limit characters number in admin area


Go to End


2 Posts   1864 Views

Avatar
bebabeba

Community Member, 193 Posts

22 June 2010 at 3:17am

Hi!

I have an other problem whit admin area..
in the right side of a standard page I see this feald:

1.Page name
2.Navigation label
3.Content

I add an other field:'short description' (text filed)
Is it possible limit number of character to insert when I digit my text?
This is a short description so I must limit to 150 charactrers.
What can I write in my getCMSFields functions?
I use Silverstripe v.2.3.7
Can you help me please?

Thanks

Avatar
Carbon Crayon

Community Member, 598 Posts

22 June 2010 at 11:17am

Hi bebabeba,

This is actually the 4th argument for a textfield:

new TextField('Name', 'Title', 'Value', $MaxLength = 150);

Aram

www.ssbits.com - SilverStripe Tutorials, Tips and other bits.