jgrunder
Založený: 08.07.2004
Príspevky: 3
Zaslal: 2004-07-08 00:34
Návrat hore
Odpovedať s citátom
|
Is there a field option for phpMyEdit which limits the size of the column in the list area?
I have several text fields which have 200 words or more. I know that I can limit the number of characters down using maxlen or trimlen, but I really want to just limit the width of the column to say 50 characters and then let the field wrap down the column. (Yes, I also tried width, but this does not seem to change the size of the column either).
Any ideas?
John
|
lemmi
Založený: 23.06.2004
Príspevky: 9
Zaslal: 2004-07-12 18:06
Návrat hore
Odpovedať s citátom
|
You can set the width of the column in a CSS or, alternatively, with opts[fdd][xyz]['colattrs']='width="100px"' where xyz is the db column name.
|
jgrunder
Založený: 08.07.2004
Príspevky: 3
Zaslal: 2004-07-12 19:19
Návrat hore
Odpovedať s citátom
|
Thanks, this seems to have done the trick.
| lemmi Napísal: |
| You can set the width of the column in a CSS or, alternatively, with opts[fdd][xyz]['colattrs']='width="100px"' where xyz is the db column name. |
|
gbalt
Založený: 20.02.2005
Príspevky: 7
Zaslal: 2005-02-26 15:32
Návrat hore
Odpovedať s citátom
|
Thank you!
This is very different than the comments in the calling program. I spent so much time trying to get it to work doing it like that calling program says. The ways you showed here was perfect.
| lemmi Napísal: |
| You can set the width of the column in a CSS or, alternatively, with opts[fdd][xyz]['colattrs']='width="100px"' where xyz is the db column name. |
|
ScottChapman
Založený: 09.06.2007
Príspevky: 31
Zaslal: 2007-11-08 18:20
Návrat hore
Odpovedať s citátom
|
I have tried the following:
$opts['fdd']['MailingAddress'] = array(
'name' => 'Street',
'tab' => 'Address',
'select' => 'T',
'maxlen' => 50,
'sort' => true
);
$opts['fdd']['MailingAddress']['colattrs'] = 'width="500px"';
and the colmn still doesn't display with the proper width.
What am I missing?
|
geo0005
Založený: 12.08.2007
Príspevky: 2
Zaslal: 2007-11-08 22:56
Návrat hore
Odpovedať s citátom
|
I have tried the following:
$opts['fdd']['MailingAddress'] = array(
'name' => 'Street',
'tab' => 'Address',
'select' => 'T',
'maxlen' => 50,
'colattrs' => 'width="500px"',
'sort' => true
);
Try this it must works
|
ScottChapman
Založený: 09.06.2007
Príspevky: 31
Zaslal: 2007-11-08 23:14
Návrat hore
Odpovedať s citátom
|
I tried that as well, and it did not behave any differently. The column is still too narrow.
-Scott.
| geo0005 Napísal: |
I have tried the following:
$opts['fdd']['MailingAddress'] = array(
'name' => 'Street',
'tab' => 'Address',
'select' => 'T',
'maxlen' => 50,
'colattrs' => 'width="500px"',
'sort' => true
);
Try this it must works |
|
michal
Založený: 17.06.2003
Príspevky: 537
Bydlisko: Slovakia
Zaslal: 2007-11-14 13:15
Návrat hore
Odpovedať s citátom
|
trimlen option ?
|
MediaHound
Založený: 16.12.2007
Príspevky: 2
Zaslal: 2007-12-16 05:45
Návrat hore
Odpovedať s citátom
|
I'm having the same problem, I cannot get columns to be as wide as I want them to be.
When I try:
| Kód: |
$opts['fdd']['date']['colattrs']='width="250px" align="center"';
|
It even centers but does not adjust the width!
I looked at the css and it does not appear any conflict anywhere... this is really taking me much longer than I would like to figure out, so I figured I would join and post here.
I tried
'colattrs' => 'width="250px"',
$opts['fdd']['date']['colattrs']='width="250px"';
and some other various combinations and guesses as well..
I searched the forums up and down as well as the online html documentation files. This is really bugging me! Seems like this works for others but not for me, I'm using a fresh vanilla installation... Anybody have some baby step guidelines to get the columns as wide as needed?
Thanks in advance.
|
|
Odoslať novú tému
Odpovedať na tému
|