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

Circular Sorting in Drupal 6, CCK & Views

I had an interesting request from a client today and I'm not exactly sure the best way to solve it using Drupal Views. They currently have a "Team Member" content type that represents members of their staff. Each staff member page has a link to all…
David Stinemetze
  • 8,830
  • 3
  • 21
  • 34
2
votes
2 answers

Run rule only if workflow state changed to XYZ

In Drupal I'd like to set up a rule that only runs if a workflow state is changed to a specific state. For example, if an Application is marked as 'submitted' and was previous marked as 'draft', I'd like to execute a specific block of PHP. Is this…
Ian McIntyre Silber
  • 5,553
  • 13
  • 53
  • 76
2
votes
1 answer

drupal create content "add more" field

how do i make that in the creating screen of content type i will be have option to add single/multiply values? so if use have field: type your friend name: he can choose to type one friend and there is option add more and then another field will…
amirash
  • 2,419
  • 5
  • 24
  • 26
2
votes
1 answer

Drupal6: how to deny to see other user's nodes?

I have the following problem in Drupal 6 with CCK: user1 creates node 1 in a custom CCK type user2 creates node 2 in a custom CCK type If user1 puts in address bar http://website_address?q=node/2 he can see the content of the node, even if I've…
Cris
  • 12,124
  • 27
  • 92
  • 159
2
votes
1 answer

cck imagefield upload problem?

I have a cck field of type "file". I used this for uploading of images. On my local server running on apache, uploading of image using the field is fine. But on the deployed version or the web server, the upload won't work. On the web server, I can…
mr.b
  • 2,708
  • 8
  • 39
  • 64
2
votes
3 answers

Drupal: hook_search only for a content type

I would like to build a custom search module in Drupal 6 for searching through CCK. I need the user to search between his nodes (node.uid=x) and of a certain type (type='xyz'). I think I have to implement hook_search but I don't know where to put my…
Cris
  • 12,124
  • 27
  • 92
  • 159
2
votes
1 answer

how to bulk edit node in drupal?

I add 1 CCK field and want edit this for any content(500 nodes). how to edit this nodes together? Tnx.
MJH
  • 653
  • 2
  • 14
  • 36
2
votes
1 answer

Drupal: Additional attributes for taxonomy terms

I need to assign dynamic attributes (like entity types) to a custom content type that created. Those entity types have a name and 2 additional attributes. I've not seen a way to assign additional attributes to a taxonomy term, so I think I shoud…
Cris
  • 12,124
  • 27
  • 92
  • 159
2
votes
2 answers

Drupal which is better: custom table or CCK?

I need to develop a Drupal site on which, among other things, a user can compile a form containing a list of its contacts and appointments with many custom fields. I don't know which is the better thing to do between having a custom MySql table;…
Cris
  • 12,124
  • 27
  • 92
  • 159
2
votes
2 answers

Measurement sheets in Drupal 6

I'm doing a project for a surveying company in Drupal 6. Ultimately, employees will need to enter measurements into a new content type. Currently they do it in a big Excel spreadsheet that has a bunch of macros to do calculations between cells…
aendra
  • 5,286
  • 3
  • 38
  • 57
2
votes
1 answer

How to query cck field in drupal?

I have two content types (job_post and application) linked using the node reference + node reference url nodes. When I click a link in a job_post node, a new application node is created, so that candidates can fill out their job application. My goal…
user512826
  • 57
  • 5
2
votes
1 answer

What's the difference between CCK Decimal and Float fields?

CCK's Number submodule provides two fields: decimal and float. Decimals are technically floats, so what is the difference between the two?
user113292
2
votes
1 answer

Drupal - CCK field - make required

I've installed the following module - http://drupal.org/project/og_reg_keys This module adds an additional field to your Organic Group Node types, to allow auser to specify a registration key for users to use to join the group. The problem is that…
Ankh2054
  • 1,103
  • 2
  • 16
  • 39
2
votes
2 answers

Use an exported CCK content type in an install schema of a module

I have a content type built by CCK in Drupal 6. If I export it, I get a php code. How can use this code in my module's hook_install, to have this content types imported when the module is installed?
mimrock
  • 4,813
  • 8
  • 32
  • 35
2
votes
2 answers

jQuery access input field by name[value][id]

I have some HTML code like this:
FLY
  • 2,379
  • 5
  • 29
  • 40