Content Construction Kit (CCK)

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.

For those who wish to discuss CCK development.

mattyoung's picture

Need information on how to extend CCK widget

I created a module which adds multi-column display option to checkboxes/radios form element: http://drupal.org/project/multicolumncheckboxesradios

Someone asked to have this integrated with CCK. Is it possible to do?

It would need to have multi-column options settings for any field that uses the checkboxes/radios widget.

I think I need to somehow extend the 'optionwidgets_buttons' in optionwidgets.module.

Any pointer to how to do this is greatly appreciated!

Read more
juliavdw's picture

Repeated Fieldgroups with alternating fields

Hello,
I have recently switched to Drupal from Joomla, and my question may be basic:

I'd like to create a content type for adding testimonial quotes to any page. I'd like to have a quote field and a credit field designated so I can designate styles automatically.

I figured out how to make a fieldgroup with my two fields.

Is there a good way to repeat this fieldgroup three times in a page or story, and have it be easily editable so that you can have different quotes on each page?

Read more
bwright's picture

How to render taxonomy checkboxes in CCK form as columns?

Hello. I have a CCK content type with several fields that are long checkbox lists of taxonomy terms. I would like to be able to render the checkboxes in columns so that filling out the node form will not require so much scrolling (and to just make it look a little nicer). I'll attach a screengrab of what I'm after. I've been searching around for a couple of days but haven't found a good way of doing this. Any ideas on how to accomplish this much appreciated.

Read more

UI-oriented summary of D7 Field API

This Wiki page summarizes the UI needs for the D7 Field API, to get the ball rolling on design discussions.
Discussion currently takes place in the comments here - or is there any other place more in line with D7UX habits ?

Introduction

A good UI for D7 Field API remains to be invented - esp. when considering a couple new features compared to CCK D6.

Read more
izarco's picture

nodereference in many languages

Hello, I need to create a node that can have multiple translations in one language. Drupal can not do this natively so I thought to do with CCK and nodereference. I happen several ways:
1 - create a nodereference field for each language. Problem: When adding a new language need to manually modify the content type and add a new field for the language nodereference added.
2 - create a field type nodelangreference.

Any idea how to do option 2? Any other idea how to model this?

I attach a picture of how I want you to see the creation form.

Read more
mansspams's picture

cck node reference and views

I am looking for a way to display count of nodes that reference to node being displayed in views table, for example, there are 6 nodes B that has node reference field pointing to node A, i want view to display list of nodes A with count of nodes B. Any tips, suggestions? Thanks.

Read more
PepeLefritz's picture

Limit users to creating only one piece of content with cck

I have a node type called "suggestion" which is created using CCK. Only one type of user has permission to create this content. However, I would like to further limit this by allowing those users to create only one "suggestion". They can edit it after they create it, but they should not be able to create multiple suggestions. Any ideas on how to approach this?

Read more
Arodicus's picture

Adding Parameters to Node Reference field

Is it possible to add a single parameter to a multiple-selection Node Reference field? Optionally, is there a way to create 1..n Node References, where Nodes can repeat?

Scenario: I have defined a Content Type, Products. While most Products define single real-world items, such as sticks and stones, some products may define groups of existing products, i.e. stick and stone. This is easy enough to set up using a Node Reference that implements either a multi-select box or check boxes, enabling me to link to the "Stick" node and to the "Stone" node.

Read more
Erco-gdo's picture

Best practice to re-assign the content of a cck imagefiled, while changing the content_type of a node

In a project, I have 2 content_types (A & B), each one having a CCk imagefield defined (not shared).

I need trigger a rule that I will change the content type of a given node (from A to B).

During that operation,
I need to gather the data stored in the the CCK imagefield defined for Content_Type A (ok, this is done before content_type "upgrade").

Then, I'm wondering what is the best practice to store those data in the CCK imagefield defined for Content_Type B.

To keep in simple, I plan to have 2 imagefields setup with the same parameters, but the name.

Read more
markus_petrux's picture

Dynamic customization of views, but also need support for views ajax

Hi,

This is about a problem I have found when trying to write a feature for a module that needs to provide back reference views to nodes based on CCK node reference fields.

What I would like this to work is that the module provides a base default view that is used to provide all back refence views. This view can be modified to add more fields, change the style, add and/or expose filters, and so on. The user can also clone this view and assign the customized clone to any particular back reference relation.

Read more

Porting Biblio to CCK

Project information

(Original) Project page on drupal.org: http://drupal.org/project/biblio
Student: Kornel Lugosi (Coornail on d.o, Coornail on g.d.o)
Mentor: Kristof Van Tomme (kvantomme)
Co-mentor(s):
* Ron Jerome (rjerome@drupal.org)
* Robert Douglass (robertDouglass)
* Benjamin Melançon ( http://drupal.org/user/64383 ; http://agaric.com/contact )

Current status: Planning.

Description

Biblio is a Drupal module that allows users to manage and display lists of scholarly publications. It is currently used on approximately a 1000 installations (and raising). Its use in projects like The Science Collaboration Framework, however is bound to increase its use even more.

Currently the module is still using custom nodes with its own database tables instead of CCK nodes/fields. Because of this it has to implement and maintain it's own widgets, integration with CCK reduce redundancy in the Drupal contrib codebase.  Lately several features from Biblio have been reimplemented in the CCK framework. Also several glue-modules emerged that seek to incorporate functionality that already works for CCK

Read more
tsvenson's picture

User Image upload, management and workflow

Hi guys,

Been trying to find a solution for this for weeks now and seriously could need some help pointing me in the right direction or at least tell me if this is possible or not.

Read more
prosk's picture

List CCK Fields for a node revision

Hi all!

I would like to know if it is possible to list cck fields for each node revision, in order to see evolution of the cck fields in the node revision for instance.
It is already possible but with a node view type.
I would like to have this for node revision view type.

It could be great to implement the relationship in the cck's views integration.

Does somebody know if it is already available?

Thanks you

Read more
mlncn's picture

Seeking best practices or examples for writing tests for modules that require CCK set-up

The module I'm working on is a widget module, so its effects can only be seen and tested when at least one content type has been configured with its field.

All this configuration has to be done in this test? In this case, adding a field to a content type and selecting the widget. Any examples, advice, or alternatives for this?

Separate but related: Testing starts each time with a blank slate, but is it possible instead to have the tests run with a copy of a current database? That seems like a good way to help catch bugs that can arise out of different configurations.

Read more
amitaibu's picture

cck_n_fields - good module name?

I've wrote a small utility module called cck_n_fields, which I'd like to add to d.o. site.

The module allows a user determine the number of multiple fields that should appear in a node add/edit form via URL.
for example: example.com/node/add/story?cck_n_fields[NAME-OF-FIELD]=5 will result with the attached image.

my user case in this module, is that I have a desktop utility that uploads files using CURL.
Do you think the name cck_n_fields is ok? Is it worth a project in d.o. ?

Read more
mxmilkiib's picture

ImageCache resize output to a View problem

Hello. I've a problem getting an image attached to a node to appear in it's resized form on my site's front page via a view.

Read more
Torenware's picture

Current best practice on default values

I'm trying to figure out a problem in the location_cck module, which is having problems with default values (#416230: Location CCK field does not set default location). Part of the difficulty in fixing this: the lack of consistent documentation on how defaults should be handled.

It looks like the current handbook may be wrong, since some modules have recently changed their implementations. Details below.

Read more
sanguis's picture

Using CCK to populate possible values for an if statment in

I have these huge chunks of html that I need to be able to select in the node settings witch one to use (if any).
I am thinking a cck float point value, and an (if || switch) statement in the contemplate. the question is the best way to store the static html chunks. As a (block || include file || some other way)

any ideas?

Read more
jgottshall's picture

Need advice on creating CCK-based nodes from external application

I'm developing a site where much of the content will be provided by an external application, rather than manually entered via forms on the site. Basically what I need is a kind of automated bulk import, i.e. no user intervention. Is there some kind of API for this kind of thing? Do I need to figure out how to write directly to the database tables?

Read more
patrickfrickel's picture

FAPI vs CCK (or are they really good friends?)

I have been going though posts to try get some direction on data collection via forms in D6.

The story so far:

I could use cck to create a content type and then collect data, but, working with this has been a bit frustrating. The form insists on title, menu, and other elements that I don't want or need.

OR I could investigate FAPI and learn to code in the form in this medium.

From what I understand, and I'm obviously requiring direction, is I could:

  1. Create a content type in CCK
  2. Use the FAPI to create a form to use the content type to collect data
Read more
Subscribe with RSS Syndicate content