DaDaBIK
This forum is devoted to the discussion about the software DaDaBIK database front-end
the PHP Database application generator for MySQL, PostgreSQL and SQLite; also available for Wordpress.

Welcome! Log In Create A New Profile

Advanced

max characters per cell / max row height / truncate text

Posted by skap 
max characters per cell / max row height / truncate text
November 08, 2010 02:22PM
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
Re: max characters per cell / max row height / truncate text
November 08, 2010 04:49PM
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;

________________________________________________________
Eugenio |\.-./| DaDaBIK developer and project admin
Re: max characters per cell / max row height / truncate text
November 08, 2010 05:46PM
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
Re: max characters per cell / max row height / truncate text
December 05, 2010 11:30PM
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 ?
Sorry, only registered users may post in this forum.

Click here to login