Feature #29776
closedAdjust length of text in Backend
0%
Description
At my newest project (which is heavy on text) I have a very large backend in pagemodule.
It does not fit on my 22" screen and is not clear for the editors.
So I'm looking to limit the display of the text. This is done in:
typo3/sysext/cms/layout/class.tx_cms_layout.php
in the function renterText()
At the moment the text is cropped after 1500 characters.
It would be nice if the admin can adjust this size.
I suggest to use something like:
$TYPO3_CONF_VARS['BE']['cropTextInPageModule'] = 200;
and a patch:
--- class.tx_cms_layout.php.org 2011-09-14 14:15:47.000000000 0200
++ class.tx_cms_layout.php 2011-09-14 14:17:17.000000000 0200@ -2284,7 +2284,11
@
*/
function renderText($input) {
$input = strip_tags($input);
if ($GLOBALS['TYPO3_CONF_VARS']['BE']['cropTextInPageModule']) {
+ $input = t3lib_div::fixed_lgd_cs($input, $GLOBALS['TYPO3_CONF_VARS']['BE']['cropTextInPageModule']);
+ } else {
$input = t3lib_div::fixed_lgd_cs($input, 1500);
+ }
return nl2br(htmlspecialchars(trim($this->wordWrapper($input))));
}