We want to create a custom cck field that contain group of textfield, checkbox and file cck. Please explain it with details,
(Need to add multiple Custom CCK Text Fields with each file attachment and date field and check boxes)

Comments

rahul_singh’s picture

Plz tell me hw to show the file attachment field with the schema. and also give the module file in which we defined the these element in our front end.

marcingy’s picture

Category: feature » support

This is a support request

rahul_singh’s picture

/**
* Implements hook_install().
*/
function collabfield_install() {

}

/**
* Implements hook_uninstall().
*/
function collabfield_uninstall() {

}

/**
* Implementation of hook_field_schema().
*/
function collabfield_field_schema($field) {

if ($field['type'] == 'collabfield') {

$schema['columns']['name'] = array(
'type' => 'varchar',
'length' => '255',
'not null' => FALSE,
);

$schema['columns']['position'] = array(
'type' => 'varchar',
'length' => '255',
'not null' => FALSE,
);

$schema['columns']['telephone'] = array(
'type' => 'varchar',
'length' => '255',
'not null' => FALSE,
);

$schema['indexes'] = array(
'name' => array('name'),
'position' => array('position'),
'telephone' => array('telephone'),
'fid' => array('fid'),
//'mail' => array('mail'),
);

return $schema;
}
}

I havecreated the text field but ididnot able to crate the file attachment hw we create the schema for file attachment.

Anonymous’s picture

Status: Active » Fixed

Try using the field_example in Examples for Developers.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Need to add multiple Custom CCK Text Fields with each file attachment and date field and check boxes