17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1190 Views |
-
Limiting characters in backend fields

26 September 2008 at 3:00pm
Hey i'm trying to limit the amount of characters a user can enter into certain fields of the CMS. At the moment I'm trying
$fields->addFieldToTab('Root.Content.Main', new TextField('ProjectTitle1'), 'Content', '', 20); but it doesn't seem to limit anything. Any suggestions? Should I be using $limit = 20 instead? -
Re: Limiting characters in backend fields

26 September 2008 at 9:47pm
I think you need to limit in the constructor of the TextField rather then the add to tab function, so you would have
$fields->addFieldToTab('Root.Content.Main', new TextField('ProjectTitle1', 'ProjectTitle1', '', 20), 'Content');
| 1190 Views | ||
|
Page:
1
|
Go to Top |


