Closed (won't fix)
Project:
Matrix field
Version:
6.x-1.4
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
6 Sep 2011 at 13:48 UTC
Updated:
3 Sep 2012 at 18:22 UTC
Hi, I have problem with matrix module.
When I'm trying create new content type with cck field (measurement Content Copy module => import code field), drupal system create node data's in database, but when I want create new node, my cells are empty (no display in create node).
Below is my code, whose I try added.
array (
'label' => 'cena',
'field_name' => 'field_cena',
'type' => 'matrix',
'widget_type' => 'table',
'change' => 'Change basic information',
'weight' => '3',
'description' => 'Enter keywords and prizes for a this.',
'default_value' =>
array (
),
'default_value_php' => 'return array( 0 => array(), 1 => array(), 2 => array(),);',
'default_value_widget' =>
array (
'field_cena' =>
array (
0 =>
array (
0 => array(),
1 => array(),
2 => array(),
),
),
),
'group' => false,
'required' => '0',
'multiple' => '1',
'info' =>
array (
'field_name' => 'field_cena',
'field_type' => 'table',
),
'mode' => 'cols',
'empty' => '-',
'empty_hide' => 1,
'add_cols' => 'Add new column',
'cols_elements' => 'a:3:{i:0;a:8:{s:5:"#type";s:9:"textfield";s:6:"#title";s:15:"Slowo kluczowe";s:8:"#options";s:9:"undefined";s:11:"#validation";s:4:"none";s:5:"#size";s:1:"5";s:9:"#required";i:0;s:12:"#calc_method";s:9:"undefined";s:4:"#php";i:0;}i:1;a:8:{s:5:"#type";s:9:"textfield";s:6:"#title";s:11:"Cena top 10";s:8:"#options";s:9:"undefined";s:11:"#validation";s:7:"numeric";s:5:"#size";s:1:"5";s:9:"#required";i:0;s:12:"#calc_method";s:9:"undefined";s:4:"#php";i:0;}i:2;a:8:{s:5:"#type";s:9:"textfield";s:6:"#title";s:10:"Cena top 5";s:8:"#options";s:9:"undefined";s:11:"#validation";s:7:"numeric";s:5:"#size";s:1:"5";s:9:"#required";i:0;s:12:"#calc_method";s:9:"undefined";s:4:"#php";i:0;}}',
'rows' => '',
'add_rows' => 'Add new row',
'rows_elements' => '',
'op' => 'Save field settings',
'module' => 'matrix',
'widget_module' => 'matrix',
'columns' =>
array (
),
'display_settings' =>
array (
'weight' => '32',
'parent' => '',
'label' =>
array (
'format' => 'hidden',
),
'teaser' =>
array (
'format' => 'hidden',
'exclude' => 0,
),
'full' =>
array (
'format' => 'hidden',
'exclude' => 0,
),
4 =>
array (
'format' => 'hidden',
'exclude' => 0,
),
),
),
Resul past import:
http://images37.fotosik.pl/1043/5d2944a2c1c21fe7m.jpg
Thanks for help.
Comments
Comment #1
intrafusionMarking as Closed (won't fix) as the new co-maintainer will be focusing on D7
Comment #1.0
intrafusionAdd image for result.