5093 Posts in 1516 Topics by 1113 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1290 Views |
-
wordwrap text in Dropdownfield

28 January 2009 at 9:35pm Last edited: 28 January 2009 9:57pm
hi
how to use wordwrap in DropdownField in CMS ?
return new FieldSet(
new DropdownField('File_name','Select image:',DataObject::get("File")->toDropdownMap('Filename',wordwrap('Filename', 50, "\n", 1)))
)what is wrong ?
-
Re: wordwrap text in Dropdownfield

29 January 2009 at 10:05am
Are you trying to wrap the Filename of each file in the in the drop down?
You can't. Select fields will always be rendered by browsers on a single line. That's an HTML limitation, not a silverstripe one.
| 1290 Views | ||
|
Page:
1
|
Go to Top |


