Content Construction Kit (CCK)

Events happening in the community are now at Drupal community events on www.drupal.org.

For those who wish to discuss CCK development.

mcp-gdo's picture

search module for CCK ?

Is anyone working on a search module for CCK ? I might create a hack.

I'm also looking for a module that creates pull down select field on CCK . In 5.x the Addnode module was taking care of the pull down select box.

Read more
specmav's picture

Is the core forum module still needed anymore?

I know that I will most likely be wrong about this, but with the advancement of CCK, Views, OG and Panels, is the forum module really necessary anymore? My idea being is that with all these "practically core" modules, isn't it feasible to create a forum with just these modules?

I can create a content type called "forum post" manually, set the taxonomy for the forums (granted containers would be an issue) and use views to custom tailor the data shown to the users. I can already create 8/10th's of the forum functionality with just that scenario. Unless I am missing something.

Read more
arkepp's picture

Div wrapper for the body of a node?

I apologize in advance if this is documented, but I was not able to find anything while searching. I use Drupal 5.7 and every field output by CCK appears to be wrapped by a div with sensible classes, except the body field. I believe I need a div around the body of the node to properly align the text relative to other fields. I thought I would be able to fix this in function content_view() in content.module, but apparently not(?). Can anyone point me in the right direction?

Read more
liberatr's picture

Updating Fields with Composite Data

I have a custom module I inherited that implements its own CCK widgets to import videos, and the widget stores multiple columns in the database, but to the user, it all seems like one field.

I recently decided we needed to add a column to refer to the thumbnail, so I edited my 'database columns' operation in the hook_field_settings() function, and added a line in the hook_field() function, along with the logic I needed to fetch, display and validate the data.

Read more
bjaspan's picture

First fields in core issue + core

bjaspan's picture

Field API, field structure, and data migration

Much has been said (http://groups.drupal.org/node/9297) about how fields should be structured in D7 core, what aspects of fields can be changed, and how those changes are implemented. It is (past) time to move forward on implementing fields in core and in this post I am proposing an answer.

Disclaimer: I make a lot of declarative statements in this post. Obviously I do not have unilateral authority; this is just a proposal.

Field storage

Read more
sharique's picture

splitting long form into multiple pages (multipage cck)

Hi,
I'm working on a site which has a very long input form (a cck) , is there any way by which I can split in to multiple steps and save data in each step.

Read more
matslats's picture

CCK or custom module?

I have a CCK contentType who's fields don't correspond to the node/add form elements, so I want to put some code between the form submission and the the db INSERT.

This hack using hook_nodeapi doesn't work because $form isn't passed to nodeAPI, and CCK seems to insert the node regardless of, or before anything that happens through nodeAPI.

Having manipulated the form data, I also want a confirmation page. I already wrote a module to define the contentType, but stalled when I realised that my fields were not exposed to views.

Read more
gordon's picture

Testing for CCK in Drupal 5

I have done some work over the weekend and backported all the testing and crud files from the Drupal 6 version of CCK back to the Drupal 5 version.

I did this mainly to help with testing of the of the following patch to fix the performance issue in CCK

http://drupal.org/node/246084 => Extremely Poor Performance with CCK fields passing data to database => Content Construction Kit (CCK), content.module, critical, patch (code needs review)

Read more
asugene's picture

Tabs for Mutiple CCK Fields

What is the best way to break up a long single CCK form across several tabs? A recommendation of something not in DEV would be great. It is for a PROD site. Thanks.

Read more
gordon's picture

CCK Integration for Panels

I have just posted a patch which allows people to add a single field into a pane for much greater control over content layout.

See http://drupal.org/node/97375 for the patch to CCK

Read more
nonprofit's picture

Question regarding CCK & Content Template

Hi, this is, to be sure a simple question for anyone who knows even rudimentary .PHP, but even after most of an entire day, the solution continues to elude me.

I am building a custom content type in Drupal 6 where registered users can submit their events. Fields include event name, time & date, etc., as well as a e-mail field and the sponsoring organization’s URL(s). “field_email,” use the “Text Field” widget. “field_link”, logically uses “Text Fields for Title and URL.” These two are not required and both allow multiple values (unlimited).

Read more
Artem's picture

CCK for dummies. Conversion tutorial

Hi All

I am slightly following the CCK possibilities for about a year already and I think I am able to try it eventually live as it seems to be a good solution to a number of my problems. Unfortunately I am not sure where to get started. I've got plenty of traditional blog posts on my site and I am not sure how to convert them to CCK nodes or whether there is such possibility at all.

Could you, please, tell whether it is possible not to start CCKeing from scratch, but to convert existing content into CCK nodes? Any pointers to tutorials would be highly appreciated.

Read more
dewolfe001's picture

Is There A Way To Display Only Part of a Vocabulary?

Hello Everyone,
Is there a way (a view, an existing module, a swell hack), to limit the display of a vocabulary in a node editor?
For example:

Countries (Vocabulary)
- Africa
   - Kenya
   - South Africa
- Asia
   - Japan
   - Thailand
Read more
ubuntu's picture

Programmatically create a node with CCK fields?

I used admin GUI to create a new content type "my_type", then I added CCK fields. Does anyone know how to create a node of "my_type" using php programmatically?

I used drupal_execute() to create node before, but it requires a form id. In that case, the content type was defined by a module, which contained a form for the content type. I don't know what form id to use for a type created using GUI with CCK fields.

Another method of creating node is to use node_save(). I haven't figured out how to use either method for content type with CCK fields. Any help is greatly appreciated.

Read more
redben's picture

CCK Node Reference and revision

I am on project where i am using nodereference and while i was working on linking two node types, a question came into my mind : How does nodereference handle node revision ?
For instance when we link node A to node B and sometime later someone creates a revision for node B, does nodereference keep a reference to the old node or to the new revision ?

Read more
gordon's picture

CCK performance (or lack of)

Here at Lonely Planet we have been looking into CCK for our own projects so we can create easily supported sites which don't need developer input to do simple things like adding additional fields.

But during this time I discovered how bad the performance actually is. Like everyone I thought that adding fields that were not multiple or shared you would get the best performance.

Well I was wrong, and spent a while making sure that I was correct. And I was.

So during some other enhancements I needed to fix the CCK so that performance was much better.

Read more
matt v.'s picture

validation api module with identical rules for both Javascript and PHP

Moved to official ideas list at http://drupal.org/node/236469

I'm not a student, but I'm posting this idea as a project I'd like to see happen. The idea was inspired by Benjamin Keen's Really Simple Validation and PHP Validation pair of scripts. Those two scripts use identical rules to perform both client-side and server-side form validation using Javascript and PHP respectively.

Read more
our1944's picture

Acidfree albums and Flash gallery

I'd like to integrate acid free album support to flash gallery module and enable it to work with cck and image field in this year's Gsoc. I'm now a college student and I wish I can participate in this great project.

Read more
drupalprojects's picture

how to attach hidden CCK fields to the node

Hi folks.

I'm about to create a simple module – I've named it nodegift. It allows admin to choose any content type and use all nodes of chosen content type as a “gift”. See mockup.

Read more
Subscribe with RSS Syndicate content

Content Construction Kit (CCK)

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week