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.

General Questions

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

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

limit characters number in admin area


Reply

2 Posts   1499 Views

Avatar
bebabeba

22 June 2010 at 3:17am Community Member, 192 Posts

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

22 June 2010 at 11:17am Community Member, 598 Posts

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.