Hi,
I'm setting up a site on 4.7.2 and created a new content type using CCk. I want to remove the field-labels so I copied the template.php innards in CCK theme directory and appended to the template.php file in box gray. I copied over the field.tpl.php file from the CCK theme directory into the Box gray directory as directed in the readme.txt of CCK.
This is my template.php file in Box gray with the appended info from CCk:
function phptemplate_image_gallery($galleries, $images) {
return _phptemplate_callback('image_gallery', array('galleries' => $galleries, 'images' => $images));
}
function phptemplate_field(&$node, &$field, &$items, $teaser, $page) {
$variables = array(
'node' => $node,
'field' => $field,
'field_type' => $field['type'],
'field_name' => $field['field_name'],
'label' => $field['widget']['label'],
'items' => $items,
'teaser' => $teaser,
'page' => $page,
);
return _phptemplate_callback('field', $variables, 'field-'. $field['field_name']);
}
My field.tpl.php file looks like this:
print strtr($field_type, '_', '-') field-
print strtr($field_name, '_', '-')
">
foreach ($items as $item) {
print $item['view']
}