Feature #29776

Adjust length of text in Backend

Added by Michael Stein about 10 years ago. Updated about 10 years ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
Backend User Interface
Target version:
Start date:
2011-09-14
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

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))));
}

#1

Updated by Georg Ringer about 10 years ago

IMO it doesn't make sense to fill the core with so many specifc configurations.

use hook tt_content_drawItem or do a simple xclass

#2

Updated by Steffen Gebert about 10 years ago

  • Status changed from New to Rejected

I agree with Georg. If ever, it should be put in PageTS, not in T3_CONF_VARS.

Also available in: Atom PDF