Questions tagged [cck]

The Content Construction Kit is a Drupal module that allows users to add custom fields to content types.

The Content Construction Kit (CCK) is a collection of Drupal modules that can be used to create content types whose nodes follow a defined structure beyond that of a title and a body.

The CCK provides field types and widgets. The user (usually an administrator or developer) adds a field to a content type by selecting a field type, a widget and a name for the field. When a user creates a node of that content type, the widget is displayed and the user can enter data into it according to the field type. This data is saved together with the node that gets created and displayed when the node is displayed.

The CCK provides field types for (amongst others) text, numbers, nodes, users. Widgets for (amongst others) line input, text areas, select lists, radio buttons, checkboxes are available. Additional field types and widgets can be created by developers and some are available as extension modules on drupal.org.

CCK fields are automatically exposed to the Views module.

502 questions
3
votes
5 answers

Multiple input fields in table

Currently we are migrating our intranet from plone 2.5 to drupal 7. Everything works out pretty well except one problem we are facing with the cck module. In plone we had one content type "application" which allowed our members to applicate for a…
jumper
  • 165
  • 1
  • 8
3
votes
5 answers

Drupal 6 Programmatically adding an image to a FileField

How do I programmatically add an image to a file field? I have an url/filepath of an image that I wish to upload. I have tried the following: $newNode->field_profile_image[0]['value'] = 'http://www.mysite.com/default.gif'; But it does not seem to…
Sally
  • 1,749
  • 7
  • 31
  • 39
3
votes
1 answer

drupal 7 advertising (or: I dislike the ad module anyway)

Hey folks! Todays big question is this: I have a Drupal gig coming up and I've decided to use D7! Wow! This is your basic ad driven magazine type site (the second I'll have done). Unfortunatly: the ad module is not particularly powerful or…
Trass Vasston
  • 679
  • 2
  • 6
  • 19
3
votes
2 answers

Database within a database (a la CCK without Drupal)

I am hoping to build a Codeigniter library similar to Drupal's CCK, albeit in an extremely simplified version. I am wondering what kind of database structure would work best to achieve my ultimate goal, which can best be described by the following…
Jens Roland
  • 27,450
  • 14
  • 82
  • 104
3
votes
3 answers

Changing the value of a field in a Drupal form

I've created a hook submit function for my Drupal node edit form. I'd like to change the value of a CCK field (not in the form) for that specific node within the sumbit handler. I've tried setting the field as hidden and applying a value to it, but…
Jonathan
  • 54
  • 5
3
votes
2 answers

How do I set the value for a CCK Node-reference field automatically when create form submits

I have a content type (A) that references a single node of a different content type (B). The node referenced (B) can be programmatically determined using the information for the user creating this new node (A)... Each user can only create a single…
Chaulky
  • 699
  • 1
  • 8
  • 23
3
votes
1 answer

Why does $form_state['values'] get obliterated in drupal_process_form()?

I'm trying to programmatically store CCK type nodes using drupal_execute(). Empty nodes get created; none of the CCK fields is saved. Evidently the first line in drupal_process_form() is responsible: $form_state['values'] = array(); So my question…
Stan
  • 113
  • 1
  • 9
3
votes
2 answers

Collapse taxonomy fieldset on node form by default

While creating a (custom) content in Drupal, I have three vocabularies. But these make my create content page very heavy. I want to collapse the Vocubalary fieldset by default and want it to expand only if user chooses to.
w2lame
  • 2,774
  • 6
  • 35
  • 48
3
votes
2 answers

No title node in Drupal

I want to have a content type namely quote usign CCK. But quotes in general don't have a title. But since the title is a required field, how can I avoid being putting the title while creating a new node.
w2lame
  • 2,774
  • 6
  • 35
  • 48
3
votes
2 answers

Allowed Values list in drupal CCK Fields

I'm basically looking to simply print out each of the allowed values in a CCK field.. i know the allowed values are stored inside a text field within the table: 'content_node_field'. the values are then stored within 'global_settings' I'm looking to…
user293838
3
votes
1 answer

Drupal 5: CCK fields in custom content type

I have module that implements custom content type via NodeAPI hooks (hook_insert, hook_update etc). I want to add CCK field to this content type and populate it via hook_nodeapi calls like create or update (to show content nodes in Views). Problem…
Kuroki Kaze
  • 8,161
  • 4
  • 36
  • 48
3
votes
2 answers

Drupal permissions not showing for custom content type

I have a custom content type in Drupal which was created using CCK. The create/edit permissions for this type are not showing up in the node module permissions, although other cck types are. This content type is also bound to a module, but this…
Tim Whitlock
  • 1,111
  • 9
  • 17
3
votes
1 answer

Can I have nodereferences with thumbnails in Drupal?

Can I have nodereferences with thumbnails? By default I only get title+link.
Uganu Mamana
  • 89
  • 1
  • 1
  • 2
3
votes
3 answers

How do you migrate CCK fields between environments in Drupal?

The Content Construction Kit (CCK) is one of the most useful Drupal modules. It allows you to easily add custom fields to a content type. However, these new fields are created through Drupal itself and stored in the database. This means that if you…
ctford
  • 7,189
  • 4
  • 34
  • 51
3
votes
2 answers

Changing CCK Title for Form

By default a CCK form creation has a title of the form Create [Your Content Type Name Here] I want to change mine to Register for Such and Such It was suggested that I could use string-override, but I can't find the string to replace. I've also…
cgp
  • 41,026
  • 12
  • 101
  • 131
1 2
3
33 34