您在這裡

cck欄位:單行與多行輸入疑問

liaozi's 的頭像
liaozi 在 2007-11-06 (二) 10:05 發表

想請教一下cck欄位如何使用多行輸入
我所建立的欄位的類型皆為:
Field type:Text Text Field

我不曉得當時在建立欄位時,食譜的"作法欄位"有特別動到什麼設定,欄位可以多行輸入
日後我想再建立多行輸入欄位時,卻一直試不出來,檢查了一下其設定檔,其設定值與一般的欄位也相同
我將欄位設定資訊輸出之內容如下

$content[type] = array (
'name' => '新增食譜',
'type' => 'menu',
'description' => '',
'title_label' => '標題',
'body_label' => '內文',
'min_word_count' => '0',
'help' => '',
'node_options' =>
array (
'status' => true,
'promote' => false,
'sticky' => false,
'revision' => false,
),
'comment' => '0',
'upload' => 1,
'old_type' => 'menu',
'orig_type' => '',
'module' => 'node',
'custom' => '1',
'modified' => '1',
'locked' => '0',
);
$content[fields] = array (
0 =>
array (
'widget_type' => 'image',
'label' => '食譜照片',
'weight' => '-4',
'max_resolution' => 0,
'image_path' => 'images_menu',
'custom_alt' => 0,
'custom_title' => 0,
'description' => '',
'group' => false,
'required' => '0',
'multiple' => '0',
'field_name' => 'field__5',
'field_type' => 'image',
'module' => 'imagefield',
),
1 =>
array (
'widget_type' => 'text',
'label' => '運用料理產品',
'weight' => '-3',
'rows' => '1',
'description' => '',
'default_value_widget' =>
array (
'field__2' =>
array (
0 =>
array (
'value' => '',
),
),
),
'field__2' =>
array (
0 =>
array (
'format' => '3',
),
),
'default_value_php' => '',
'group' => false,
'required' => '0',
'multiple' => '0',
'text_processing' => '1',
'max_length' => '',
'allowed_values' => '',
'allowed_values_php' => '',
'field_name' => 'field__2',
'field_type' => 'text',
'module' => 'text',
),
2 =>
array (
'widget_type' => 'text',
'label' => '主材料',
'weight' => '-2',
'rows' => '1',
'description' => '',
'default_value_widget' =>
array (
'field__3' =>
array (
0 =>
array (
'value' => '',
),
),
),
'field__3' =>
array (
0 =>
array (
'format' => '3',
),
),
'default_value_php' => '',
'group' => false,
'required' => '0',
'multiple' => '0',
'text_processing' => '1',
'max_length' => '',
'allowed_values' => '',
'allowed_values_php' => '',
'field_name' => 'field__3',
'field_type' => 'text',
'module' => 'text',
),
3 =>
array (
'widget_type' => 'text',
'label' => '做法',
'weight' => '-1',
'rows' => 1,
'description' => '',
'default_value_widget' =>
array (
'field__4' =>
array (
0 =>
array (
'value' => '',
),
),
),
'field__4' =>
array (
0 =>
array (
'format' => '3',
),
),
'default_value_php' => '',
'group' => false,
'required' => '0',
'multiple' => '0',
'text_processing' => '1',
'max_length' => '',
'allowed_values' => '',
'allowed_values_php' => '',
'field_name' => 'field__4',
'field_type' => 'text',
'module' => 'text',
),
);

做法欄位可多行輸入,其他欄位卻只能輸入一行而已,詳見附件圖檔

附加檔案大小
Image icon cck_input.jpg132.17 KB