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, Ed, biapar, Willr, Ingo, swaiba

limit characters number in admin area

Go to End

2 Posts   1793 Views


Community Member, 193 Posts

22 June 2010 at 3:17am


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

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