max characters per cell / max row height / truncate text

skap

New member
Hi everybody,

is there a way to set the maximum size (line count, character count or similar) of a row/column ?

Some of my field contain longer text phrases it would be great if there's a way to cut it in the table view .
Complete entry should be shown in the Details view.

Hope somebody understands my problem ;-)

thanks in advance!
skap
 

eugenio

Administrator
Staff member
Not exactly what you need but these parameters in config.php can help:

// coloumn at which a text, textarea, password and select_single field will be wrapped in the results page, this value determines also the width of the coloumn in the results table if $word_wrap_fix_width is 1
$word_wrap_col = '25';

// allow that $word_wrap_col value also determines the width of the coloumn in the results table (0|1)
$word_wrap_fix_width = 0;

// always wrap words at the $word_wrap_col column, even if it is necessary to cut them (0|1)
$enable_word_wrap_cut = 1;
 

skap

New member
thanks,
I already tried, but the result wasn't what I wanted, anyway I simply hide the column in table view as long as there's no solution available :-/

Maybe ccs3 will enable it...anytime.

skap
 

tegaDesignor

New member
U can use a php function (str...) to limit the number of characters displayed and simple hide the rest - a ending "..." would also be good.

need help with that ?
 
Top