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
3 answers

Create multiple CCK nodes with single custom form in Drupal

I need a form which will allow creation of several related nodes at the same time. All of the nodes involve CCK fields. I would like to use as much of CCK's built-in validation, submission, input widget, and security functionality as…
isaac77
2
votes
1 answer

displaying a particular field of a related node with Entity Reference

Using Drupal 7, using views i have created a related 'videos' block for various page nodes. I can get the title to show but i can't see how i can just choose to show the 'thumbnail' field for related videos. I'm using the entity reference module. Is…
drav
  • 498
  • 1
  • 4
  • 15
2
votes
3 answers

Variable variables with drupal

I am theming a drupal content type, and I have a set of similarly named variables. e.g. field_anp_1, field_anp_2,..., field_anp_10. I want to dynamically print them out from within a for loop. Normally, one would print the values out individually…
Andrew
  • 21
  • 2
2
votes
1 answer

In Drupal 6 how to show field other than title field in select list of related content types

I have two content types Institute and Faculties. The title of the Institute content type is Unique Institute Number. This content type also contains Institute Name field. In the Faculty content type I want users to select the Institute Name from a…
aQb Solutions
  • 109
  • 1
  • 10
2
votes
1 answer

drupal 7 - attach file to a node by code

I wanted to associate a file to a node. so far so good. create a cck type file, and the problem was solved. but I can not do this, I do not want the user to choose the file. the file in question is already in the system. I have tried to place the…
Miguel Borges
  • 7,549
  • 8
  • 39
  • 57
2
votes
4 answers

Theme a CCK input form in Drupal 6

In my template.php file I've this: function myadmintheme_theme(&$existing, $type, $theme, $path) { return array( 'node_form' => array( 'arguments' => array('form' => NULL), 'template' => 'ccktype', ), ); } And I've a…
pera
  • 858
  • 12
  • 16
2
votes
1 answer

How to get the field values of a content type in drupal

How can I get the field value of a custom content type. I have created a custom content type using the CCK module. Is there any function to get the array of the fields of a particular content type. For example: I can get the profile details using…
Dijo David
  • 6,175
  • 11
  • 35
  • 46
2
votes
1 answer

CCK Field, minimum number of values

I have created a module which implements a CCK field. When adding the field to a content type, I have set the number of values to unlimited, and set the field to be required. Is there a way to set the number of values required? I need the user to…
MW.
  • 12,550
  • 9
  • 36
  • 65
2
votes
2 answers

CCk fields to be grouped with add another item

I created a new content type in Drupal 6 and added fields using CCK fields like country, state and zip code. I created a group named address so that it looks like: Address --- Country --- State --- Zip Now I want a add new item below the label…
Ram
  • 21
  • 3
2
votes
1 answer

How to place a cck field inside a fieldset?

I have a cck field with the name of field_testfield And I have displayed it in the form in .module file like the follwoing. $form['field_testfield']['#weight'] = 10; Now I want to enclose it in a fieldset. Any idea about this?
Ahmad
  • 2,099
  • 10
  • 42
  • 79
2
votes
1 answer

How to make a top 10 node list in drupal

I am trying to make a View with "Top 10" nodes where the position is granted by an administrator through a CCK text field with 10 options (1 to 10 points). I want that once an option is chosen, that option is not available in the select lists of…
Naoise Golden
  • 8,793
  • 4
  • 49
  • 65
2
votes
2 answers

Forms as modal windows

i got a form and i want to show it as window dialog and able to submit it via dialog how i do that? what module i need? also, how can i make that i get unique class for each form element?
dorong123
  • 103
  • 1
  • 5
2
votes
4 answers

how to detect in drupal node form if its edit or add form?

Is there a way to detect if the node form being viewed is the "edit" or "add new node" form?
dorong123
  • 103
  • 1
  • 5
2
votes
3 answers

drupal 6 cck field: is there a easy way to duplicate cck field?

is there a easy way to duplicate cck field with the same propeties just to make it a diffrent name?
amirash
  • 2,419
  • 5
  • 24
  • 26
2
votes
1 answer

how to disable WYSIWYG for the body on certain content types on Drupal?

Is there any way to specify that the WYSIWYG wil not load for certain content types (I'm interested mainly in the body content) but it wouldn't hurt to apply this to the CCK content as well..
PartySoft
  • 2,749
  • 7
  • 39
  • 55