7913 Posts in 1355 Topics by 930 members
DataObjectManager Module
SilverStripe Forums » DataObjectManager Module » Truncating Text Field In CMS View of DOM
Discuss the DataObjectManager module, and the related ImageGallery module.
Moderators: martimiz, UncleCheese, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 213 Views |
-
Truncating Text Field In CMS View of DOM

11 February 2012 at 12:10am
Hello,
I'd like to reduce the number of characters of a text field as displayed in the CMS view of the DOM, as the rows are getting ridiculously large in proportion to the overall view!
I managed to implement this kind of thing for an image field:
public function getDOMThumbnail()
{
return $this->Image()->CroppedImage(150,150);
}Where 'DOMThumbnail' is placed in the DOM array. But can find no similar example of how to reduce a text field, in this case its an HTMLtext field, nor have any of my attempts/experiments from reading through the api docs really helped much either in solving the problem. Seems like it should be pretty simple really?!
Thanks
~ Sean
| 213 Views | ||
|
Page:
1
|
Go to Top |

