| Index
» Projects
» phpMyEdit
» Forum
» Display Column Width |
 |
Topshed
Joined: 04 Nov 2007
Posts: 20
Posted: 2007-11-12 08:31
Back to top
Reply with quote
|
I am having problems with changing the width of columns I am displaying.
I have read through the Posts and the solution offered had posts reporting good and no effect.
The field I am working on displayed a column width of 15 Characters, however I have tried numbers from 10px to 500px without any differance showing on screen
ie:
$opts['fdd']['Myclass'] = array(
'name' => 'Class',
'select' => 'T',
'colattrs' => 'width="200px"',
//'colattrs' => 'width="10px"',
//'width' => '"200px"'// also tried
'maxlen' => 30,
'sort' => true
);
I have also read it can be done in CSS, but I have not been able to discover how
Please Help
thank you
Roy..
|
michal
Joined: 17 Jun 2003
Posts: 537
Location: Slovakia
Posted: 2007-11-14 13:21
Back to top
Reply with quote
|
http://opensource.platon.sk/projects/doc.php/phpMyEdit/html/configuration.output-control.html#AEN1050
|
Topshed
Joined: 04 Nov 2007
Posts: 20
Posted: 2007-11-15 01:52
Back to top
Reply with quote
|
I assume you are referring to
$opts['fdd']['col_name']['textarea']['rows'] = 1;
$opts['fdd']['col_name']['textarea']['cols'] = 40;
| michal wrote: |
| http://opensource.platon.sk/projects/doc.php/phpMyEdit/html/configuration.output-control.html#AEN1050 |
but being new to PHP I am unable to work out how to incorporate that information into my problem code
below, where I want to restrict my col width to 30 chars on this field
$opts['fdd']['Lname'] = array(
'name' => 'Lname',
'select' => 'T',
'maxlen' => 60,
'sort' => true
);
An example would be great
Thanks
Roy..
|
michal
Joined: 17 Jun 2003
Posts: 537
Location: Slovakia
Posted: 2007-11-25 16:35
Back to top
Reply with quote
|
i was reffering to the trimlen option
|
Topshed
Joined: 04 Nov 2007
Posts: 20
Posted: 2007-12-13 16:18
Back to top
Reply with quote
|
Thanks
regards
Roy..
|
itsjustchuck
Joined: 10 Aug 2011
Posts: 0
Posted: 2011-08-10 16:40
Back to top
Reply with quote
|
| michal wrote: |
| i was reffering to the trimlen option |
I tried that. It works well for text but the two columns I have currently have URL and Email so they are URLs if you trim the length and try to click the link it will only make the current visible text the link. For example
should be http://www.example.com but shows only http... because of the trimlen
When you click the link it will take you to yoursite.com/http...
Any suggestions?
|
|
Post new topic
Reply to topic
|
|
|
|