Jump to:

23459 Posts in 18906 Topics by 2877 members

General Questions

SilverStripe Forums » General Questions » limit characters number in admin area

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

Page: 1
Go to End
Author Topic: 1487 Views
  • bebabeba
    Community Member
    192 Posts

    limit characters number in admin area Link to this post


    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?


  • Aram
    Community Member
    598 Posts

    Re: limit characters number in admin area Link to this post

    Hi bebabeba,

    This is actually the 4th argument for a textfield:

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


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

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.