Content Construction Kit (CCK)

For those who wish to discuss CCK development.

CCK field modules maintainers - D6 upgrade path must read!!!

To all CCK field modules maintainers :
please read http://drupal.org/node/304813

(also posted on the development ML)

1 comment

Assign values to individual elements of multivalued field

How do I assign values to individual elements of a multivalued field with Rules? I know how to assign a value to a single valued field with the "Populate a field" action. This does not work for a multivalued field, as I want to assign a value to specific fields in the array.

I tried to use custom PHP code following the suggestion under the code entry box:

Expected format:
return array(
0 => array('nid' => value for nid),
// You'll usually want to stop here. Provide more values
// if you want your 'default value' to be multi-valued:
1 => array('nid' => value for nid),

Login to post comments · Read more

Filefield and XML

I'm wondering if it's possible to make some sort of rule which alters an xml file when a filefield file has been uploaded.

For example, I have a flash player fed by an xml file. I would like to be able to upload a set of mp3s through cck, and have the system then add those files to the list in the xml document.

I'm not all that familiar with xml, or media players in general, and the modules available are more for community applications. I just need one standalone player to be fed by one document, and the files all coming from one node. Any help would be much appreciated.

2 comments

database application

Is CCK is a good module for consructin database applications. I am going to use it to build employees information system in the university i am working in.

4 comments

Embedding child content type form to parent content type editing page

Hello,
My requirement is not so complicated and I think it can already done with a cck module but I couldnt find it.

1 comment · Read more

Is It Possible Edit to Computed Field?

Hi,
I am using Computed field - CCK in Drupal 6, and i am trying to edit the computed field could some one help me to solve this problem?

Thanks

7 comments

Customizing save message

Hello,
I couldn't figure out how I can configure creation message. Is it possible to do that?

3 comments

Any timeline for compound field support?

Folks told me compound filed will be supported in CCK 3. Is it true? If yes, it is great.

Currently, CCK does not support compound field unless developers make such a filed themselves.

Even developers make a compound field, it still has some serious limitation:

For example, you cannot set the number of values on an individual field in a compound field.

2 comments

Is it possible to set number of values of an individual field in a compound field to "multiple"?

I got a problem when developing a compound field (Drupal 6, cck 2). It has an Imagefiled, a few textarea/textfield/checkboxes, etc.

However, I realize that I must enable users to upload multiple images. The compound field as an entire field can be set to "unlimited" number of values , but not the individual field in the compound field.

In other words, all individual fields in this compound filed, other than the image field, can only have just one value; the compound field as a whole, can only have one value, too. But the image filed must be able to have unlimited number of values.

Login to post comments · Read more

On-the-fly remote image fetching

I've got a tricky problem, and I'm hoping folks more familiar with the CCK/Views ecosystem can help me formulate a plan of attack.

My module pulls listings from a remote database of real estate listings and imports them as nodes, with each field in the remote listing corresponding to a CCK field on the nodes, so the listings can easily be displayed, sorted and filtered with Views - it works pretty well. Each listing can also have several images, and I'd like to be able to use CCK and Views to display those images as well with full ImageCache magic.

Login to post comments · Read more

Proposal for a module: TAC fields

I'm considering developing a module to extend the functionality of TAC to role/field combinations. TAC works wonderfully for controlling access to whole nodes based on their taxonomy, but it's all-or-nothing; the module currently has no way of leveraging the per-field access control offered by Content Permissions.

I don't think the functionality belongs in TAC itself, as my proposed module is an additional layer of complexity that's specific to CCK content types.

1 comment · Read more

CCK Node Reference to custom feed

I'm working with 2 types of nodes, 'alert' and 'area'. I've pre-populated a bunch of area data which contains various information such as coordinates, etc. Each 'alert' has, among other information(title,scope), a node reference to an 'area'.

I'm trying to create a feed like this:

<alerts>
  <alert>
  <title>Title</title>
  <scope>Public</scope>
  ....
  <area>
     <coordinates></coordinates>
     ...etc....
  </area>
  ....
  </alert>
  <alert>...</alert>
</alerts>

Login to post comments · Read more

Locatio mapper feedapi georss for ckk

I have been looking into the location mapper for the feedapi.
My rss feeds are provided by a affiliate-datafeeds to rss converter. This feed includes categories and georss information. I found the following issues:

  1. RSS does not have other geo fields except the georss tags
  2. The location mapper does not allow mapping other fields then the georss (makes sence after the first issue)
  3. When solving 1 and 2 the locatiomodule will still attempt to find ‘better’ coordinates and throw away the provided onces
1 comment · Read more
igor.ro's picture

Using views in cck formatters

In my last project I develop module that may be intersted to community.
The problem was that I need to show list of images (imagefield) from nodes (type A) that references to node (type B) in on full node view page in the node body region. Also I was need to show list of nodes (type C) that have same taxonomy as current viewed node.

The decigion was to run view in the formatter code for nodereference field and to pass in this view value of this field as argument.
What do you think about this solution?

Login to post comments · Read more

Simpletest and CCK types

Hey all,

Ive been exploring the wonderful Drupal framework for some weeks now, been reading alot about modules, module development and theming. In the last few weeks i have developed some small modules that i want to test using the Simpletest module.
Ive read the documentation and the tutorial to get some sense of how to set up Simpletest for my modules. So i thought i would start by making some functional tests for my custom CCK types. So far i haven't had much luck, ive been wrestling Simpltest for a while now and its not returning the love so far :P

1 comment · Read more
mikeytown2's picture

CCK node reference & cache expiration for boost

I could use some help with boost and CCK. Given nid, get all cck node references (this node points to X (not very useful, X hasn't changed)) & all cck back references (X points to this node (very useful, this node changed)). Flush all nodes, only going 1 level deep. Any help is greatly appreciated.

Boost issue: http://drupal.org/node/567650

Login to post comments
pvhee's picture

Social networking accounts: unified approach to store in external account data in user content profiles?

Currently, drupal integration with networking sites happens through contrib modules that all store their settings in different ways. For example, both Facebook Connect and Twitter store combinations of drupal user IDs with external IDs (Facebook uid, and Twitter account name) in custom database tables, and both provide a custom interface to edit social network account information in a user profile. Consequently, views integration is custom and relies on the contrib module to implement it.

2 comments · Read more
ebrittwebb's picture

How To: Generate Random URL

(Reposting...last post was deleted)

For certain content on a site, I want to implement "security by obscurity" by having the posts show up only in restricted views and by making the URLs for those posts a set of random, unguessable characters (like Microsoft does with GUID).

So, I need guidance in two parts:

  1. What module (presumably CCK-related) or trick will create a set of random, unguessable characters that I can then use as replacement token in pathauto?
5 comments · Read more

2 content templates for 1 content type

I was reading "Flash With Drupal", Tidwell, in there there is a content type recipe. Is it possible to define 2 content templates for 1 content type, for example: if a cook (role) clicks on a recipe link, it will open up in cook.swf where he can view the recipe. If a chef clicks on the recipe link it will open in a different flash application, chef.swf, that can be used for editing the recipe.

Login to post comments
joachim's picture

Creating new nodes from CCK nodereference fields

I can find at least four modules that do this in various ways:

http://drupal.org/project/addnode
http://drupal.org/project/popups_reference
http://drupal.org/project/add_n_reference
http://drupal.org/project/noderefcreate

Older modules that allow this sort of functionality include image_attach and audio_attach (part of http://drupal.org/project/image and audio module respectively). These include extra fields (title and image file, for instance), so for an eventual conversion of these to a generic system, an API needs to lets a module specify which fields the user fills in,

Read more
Syndicate content