
Originally Posted by
andopes
Hi Jordy
You need to add the attribute
PHP Code:
'displayParams' => array(
'size' => '1',
),
On field defs at custom/modules/<YourModule>/metadata/searchdefs.php
Cheers
Hi Andopes,
Thx for your reply.
There is no such map and file in this directory;
custom/modules/Plan_Planning_Projecten/metadata/searchdefs.php
I had already deployed this module so I can find this file in;
modules/Plan_Planning_Projecten/metadata
Php code;
PHP Code:
<?php
$module_name = 'Plan_Planning_Projecten';
$searchdefs [$module_name] =
array (
'layout' =>
array (
'basic_search' =>
array (
'planning_month' =>
array (
'width' => '10%',
'label' => 'LBL_PLANNING_MONTH',
'default' => true,
'name' => 'planning_month',
),
'planning_year' =>
array (
'width' => '10%',
'label' => 'LBL_PLANNING_YEAR',
'default' => true,
'name' => 'planning_year',
),
),
'advanced_search' =>
array (
'planning_month' =>
array (
'width' => '10%',
'label' => 'LBL_PLANNING_MONTH',
'default' => true,
'name' => 'planning_month',
),
'planning_year' =>
array (
'width' => '10%',
'label' => 'LBL_PLANNING_YEAR',
'default' => true,
'name' => 'planning_year',
),
'planning_sort' =>
array (
'width' => '10%',
'label' => 'LBL_PLANNING_SORT',
'default' => true,
'name' => 'planning_sort',
),
),
),
'templateMeta' =>
array (
'maxColumns' => '3',
'widths' =>
array (
'label' => '10',
'field' => '30',
),
),
);
?>
Do i need to modify this file? And where will i have to add this code;
'displayParams' => array(
'size' => '1',
)
Hope you can help me.
Thanxxxx
Bookmarks