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
4
votes
2 answers

Drupal7 : content type with many fields

what's the best way in Drupal 7 to handle many fields (> 40). I've to handle hostels content-type. D7 creates as many mysql tables as fields count, so I fear for the performances, but maybe it's not a problem. Do I have to create entity and…
Etienne
  • 655
  • 3
  • 15
4
votes
3 answers

Module to parse RSS feed in Drupal?

I'm trying to simply display an RSS feed as part of my site. A user will put in an RSS URL into a CCK field and I want to take that URL and display the latest RSS results. I assume there's a module for this but I can't seem to find it.
Ian McIntyre Silber
  • 5,553
  • 13
  • 53
  • 76
4
votes
2 answers

Drupal CCK date field with just hours and minutes

How can I create a date field in Drupal just with hours and minutes without years and months?
Huzur Polat
  • 95
  • 4
  • 11
4
votes
1 answer

A CCK field that's a random number

Anyone aware of a CCK module that adds a text field that's just a randomly generated number? This means that when the user tries to create a fresh node, he sees a pre-populated random number as one of the fields (and can't change that field)
zoo
  • 95
  • 4
4
votes
3 answers

Creating a draft version of the page before publishing in Drupal 6?

I've been looking for a good way to handle revisions in Drupal, but I am yet to succeed. For some reason there is no built in way to save a draft (that I've found so far), and the modules I've tried so far do not seem to fully work. First I tried…
Marco
  • 2,329
  • 1
  • 21
  • 25
4
votes
2 answers

Drupal Nodereference in a custom form

I have a custom Drupal FAPI form that supports a fairly complex workflow and I would like to add a Nodereference field to it. Although I've found people who have included Nodereference fields on custom forms, I have been unable to find any examples…
JavadocMD
  • 4,397
  • 2
  • 25
  • 23
4
votes
3 answers

Link between CCK field and view

I want to use a view to select nodes in a content type field. This view must receive an argument that is another field of the content type. Can someone explain me how to pass the argument from the field to the view? Excuse my poor english
JTB
  • 41
  • 1
4
votes
1 answer

Drupal: how to rate node filefields?

I have a node type called 'movie' which may contain several subtitle files using the CCK FileField module. Now I'm dealing with FiveStars module, I need to rate each subtitle separately! so the user should rate for subtitles associated with a movie,…
user87274
4
votes
4 answers

Drupal Custom CCK field with multiple child fields

Is there a way of creating a composite field that can have multiple values, with each value having another group of composite values? E.g. we want to have this structure at the end: Group 1 (unlimited number of groups) Child field (unlimited…
Karl
  • 773
  • 2
  • 9
  • 22
3
votes
2 answers

Create a page to edit all fields from a custom content type (D7)

I have a custom content type that has a custom field called [stock] I would like to have a single page that shows me ALL nodes [stock] values in a list and allows me to change the value. Is this possible? Any advice would be much appreciated
Cybercampbell
  • 2,486
  • 11
  • 48
  • 75
3
votes
1 answer

Drupal programmatically delete node type and/or cck fields

My custom module creates a node type with a few CCK fields. When the users un-installs, I need the CCK fields to be deleted so the old CCK occurances don't interfere with the new ones to be created should the module be re-installed. I am trying the…
sisko
  • 9,604
  • 20
  • 67
  • 139
3
votes
2 answers

Display Label given key for select list

Given the following select list for the "field_priority" field, how can I display the label, given the key (e.g. 0, 1, 3)? 0|Low 1|Medium 2|High 3|Urgent
Chris Muench
  • 17,444
  • 70
  • 209
  • 362
3
votes
1 answer

Drupal, create multiple CCK input form in a page

I have CCK Members (title, age, ...) and because of the huge number of members I have, it would be tiresome to update some of the fields (sample below is age-field) one-by-one. I need a way to build something like picture below with Drupal 6/7. Is…
Bonn
  • 33
  • 1
  • 3
3
votes
3 answers

CMS like Drupal CCK

Is there anything for PHP that isn't Drupal but essentially has CCK-like features? So far the only things I've found is SymphonyCMS and Drupal.
jmoon
  • 606
  • 3
  • 7
  • 18
3
votes
2 answers

Programmatically get and set field values

I have two fields I want to fill with the exactly same values; users should fill only one. I also have a function which checks if the second field is empty. Is there any change in how the field values are obtained and set in Drupal 6, and Drupal…
Povylas
  • 776
  • 4
  • 16
  • 31
1
2
3
33 34