Hi,
How to set a specific field width in editviewdefs.php ?
Thanks.
Hi,
How to set a specific field width in editviewdefs.php ?
Thanks.
There is a section "widths" in that file defining the column widths:
PHP Code:'widths' =>
array (
0 =>
array (
'label' => '10',
'field' => '30',
),
1 =>
array (
'label' => '10',
'field' => '30',
),
),
Stefan Ulrich Sauer
System Analyst
Devoteam Danet GmbH
Gutenbergstraße 10
D-64331 Weiterstadt
Germany
email: Stefan-Ulrich.Sauer@devoteam.com
http://www.devoteam.de
Hi,
thanks for that. But it's for all the fields if I'm right.
How to change it only for one field ?
Thanks.
As far as I know it is not possible to change the width for only one single field.
Stefan Ulrich Sauer
System Analyst
Devoteam Danet GmbH
Gutenbergstraße 10
D-64331 Weiterstadt
Germany
email: Stefan-Ulrich.Sauer@devoteam.com
http://www.devoteam.de
To change the width of single fields there is two possibilities.
1. Use customCode to renderize the field, then include the size attribute, like:
2. Use the display parameters attribute for your field, then specify the size attribute:PHP Code:'customCode'=> '<input type="text" value="{$fields.field_name.value}" size="50">'
PHP Code:'displayParams' =>
array (
'field' =>
array (
'size' => '50',
),
),
Rafael Queiroz Gonçalves
Advanced OMG UML Certified Professional
Sun Certified Enterprise Architect for the Java Platform
Sun Certified Programmer for the Java 2 Platform
IBM Certified Advanced Application Developer - Lotus Notes and Domino
IBM Certified Application Developer - IBM WebSphere Portlet Factory
Computer Science Mastering / UFSC - PPGCC
Ah sounds perfect!
I will try this for sure.
Thanks !
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks