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


2 Posts   1499 Views


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


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

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?


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 - SilverStripe Tutorials, Tips and other bits.