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.

marinv's picture

passing cck values

Hello

In my site nodes I include a views block wich provide a cck field_id value.

In the pages is included also a block containing a script;

I need to pass the field_id value to a string in the block, like

"<form action="http://example.jsp?ID=id method="POST" >"

where id should be replaced with field_id value

Thank you very much for any help!

Read more
steve hanson's picture

Rights Ownership Question on Filefield Upload

Anyone have a suggestion for this, since I'm sure it must have come up?

A client of mine has a site that allows uploads of MP3 files through a filefield CCK field. What we'd like to do is to have a popup or some other sort of method that will ask the uploader if they have copyright permission for the file if they try to do an upload --- Maybe have them click a checkbox first agreeing that they own the rights to the music file.

Anyone done this in a straightforward manner? - This is in Drupal 6

Read more
brendanxc's picture

CCK module to embed multiple edit-in-place nodes?

My team is working on a custom node type (lesson) that contains multiple embedded nodes of a different type (activity.) The lessons require edit-in-place functionality for the embedded activity nodes. We have a version working, sans multiple-value CCK field support in the nodes.

Read more
drupalnesia's picture

What is the best/right way to create a CCK field?

I need to create a CCK field in my module. What is the best/right way?

From this link http://benbuckman.net/tech/10/01/drupal-automating-cck-field-creation-up... I got:

$form_state['values']['_add_new_field']['label'] = 'Name of New Field';
$form_state['values']['_add_new_field']['field_name'] = $new_field_name;
$form_state['values']['_add_new_field']['type'] = 'computed';
$form_state['values']['_add_new_field']['widget_type'] = 'computed';
$form_state['values']['_add_new_field']['parent'] = 'group_some_group'; // put under fieldgroup (optional)

Read more
jonthomas83's picture

CCK Version of Facebook-style Micropublisher Needed! (Facebook Style Link Attachment)

Hi all,

I've been wrestling with this for a while now, and read various conversations about why the Facebook-style Micropublisher module was designed the way it was, without using CCK and non-node based. But looking at the way Drupal is going and the modular approach it is taking, especially with fields being core in D7, I think that this type of functionality would be superb to be able to achieve using the various CCK modules.

Read more
jbnewman's picture

Integrating custom types (with custom schema) with CCK

I am currently producing a "family" of modules designed to manage a hosting infrastructure (email, dns, ftp, etc). I am cruising along, but keep coming back to one big stumbling block ... the role of CCK in my module. From a technical stand-point, I don't have a compelling need to use CCK (I'm happy to code up what needs to be coded), but it's clear that from a "best practice" perspective (and honestly, from a quality assurance & maintainability perspective), utilizing CCK as much as possible is a "good thing."

Among others, I have the following content types:

Customer
Domain

Read more
CeeInTx's picture

Sub-lists or sub-checkboxes?

Noob here ;)

First what is the best practice for lists that could be 10 items long, with 3-4 sublists under most of those? Should I do this in a list? or in checkboxes?

This is what I need to capture:

Heart disease(there are going to be other categories as well, like Lung Disease, etc. I am thinking of making these big categories Taxonomies)

Atrial Fibrillation
Coronary artery disease
- Angina
- Myocardial infarction
Congestive heart failure

etc.

So to recap:

Read more
henrijs.seso's picture

Theory of everything

This is not feature request :) just brainstorming.

What if CCK would deal with 2 kinds of elements - GROUP and FIELD only. All GROUPS would be nestable multigroups, all FIELDS would have only one value?

Would it work? Would it shrink code base? How would influence performance?

Read more
dang.artman's picture

Help finding a multi page solution

So I am trying to create a Tutorial node type (similar to instructables) that has multiple pages, which are then rendered into a tabbed interface on the node page. This is what I have got so far http://robotgeek.flpvp.com/tutorials/admin/tutorial-page-reordering
If you look at the html, I've taken textarea fields and put them into a

<

ul>

Read more
scb's picture

What's the point of shared fields, anyway?

I've been reading many posts about cck's shared fields and performance, and they all agree in one thing: Do not use shared fields unless strictly necessary. The fact is i have never found the need for them, and I've been working with CCK for some years now...

Read more
thomas4019's picture

Unlimited field default to 1 row

Has anybody found out a good way to make a CCK field with an unlimited number of values to only show one empty field on creation/update instead of two. Is there a module out there to make it easy? Or what functions/hooks could I use to fix this with a custom module?

Thanks,

Read more
class01's picture

Spliting up a CCK node entry form

Hello,

I'd like to create a custom edit node form but only have it display two CCK fields in a node + the submit buttons, how can this be done?

I'd also like to preserve the default edit node form so I don't think hook_alter will do the job.

Thanks,

Jonathan

Read more
TommyJ's picture

Wysiwyg editor in multigroup field

I am using TinyMCE (in Wysiwyg) in multigroups but the editor does not show up in multigroup textarea fields. Any idea how to embed TinyMCE in multigroup textarea fields?
Thanks!

Read more
atomicbop's picture

hierarchical select node reference proplem

I'm having a problem with Hierarchical Select, and I'm not sure where to post the question. Hopefully someone here can help me out.

I have 2 Node reference fields controlled by hierarchical select in a node type. This is for a sports site. I'm using the node type to input matches between teams.

Node reference 1: sport -> league -> team1
Node reference 2: sport(will be the same as 1) -> league(will be the same as 1) -> team (can be different).

Read more
hypertext200's picture

video-6.x-4.0-beta1 Released

6.x-4.0-BETA1 Has now been released. I am releasing this as beta as there have been major changes and additions and I think its stable enough for a beta. We still need help testing this before its implemented in a production environment. This is a rewrite of the 6.x-3.x branch. The major improvements are listed below:

* FTP Video Attach. (Ability to FTP all your videos at once and then attach the videos through a drop-down)
* FLVTool2 integration.

Read more
wilmar81's picture

Fast and powerful servers, but slow site

Hi!

We recently launched a new website with drupal and to avoid the site to often break, we decided to buy to servers. One who handles http requests, and the other where all queries occur.

We thought it would be easy, but the site is offline every our (almost when the cache is flush). Additionnaly, the site cannot handle more than users ( we consider a user is connected if his access time is lower than to 500s).

Here are the specs of our servers:

On the both servers, we have 16 cpus - Intel(R) Xeon(R) CPU - , and each has 2.27GHz speed.
Ram is at 12Go on both servers too.

Read more
atomicbop's picture

Default value as Ubercart attribute option

I'm having a major problem with displaying Ubercart attributes. I need to get each attribute option's price to display in it's own cck field. I have tried using default value using the php input, and also using Computed Fields module. The values should display, but they are not.

This is the code for the value:

$node->attributes[1]->options[1]->price

If I print this in node.tpl.php, it shows. Why wouldn't it show in a cck field? I've also tried it in a view using the customfield module.

Read more
runeveryday's picture

want to get the field

i have used CCK creating a content type which has ten fields, now i want to use code to output the fields one by one? how to write the code, any tips would be apppreciated. i know if i use the while loop,it will output the whole result,eg:

while ($row = db_fetch_array($result) ){
  echo $row['field_zwmc_value'];
}
Read more
hypertext200's picture

Video Module - What's Next?

Hi all,

We are developing never version of Drupal video module which is far more good than the last release, since we are using filefield and CCK we all know video module is very famous now. Since it is supporting views, imagecache, ffmpeg_wrapper modules its exposing more valuable features to the community.

Read more
aaron's picture

Media DX Summit 2010

MDX 2010 FTW!

With a Drupal Beta planned for May 21, the time is coming for a Media Beta as well! Before we can do that, however, there are a few loose ends to tie up. I've identified two critical pieces for a happy Developer's eXperience (DX) before I'll be happy doing that. There are certainly more: see the Media issue queue for more.

MetaData Handling

The Media module creates Media entity objects, which are fieldable. That means we can already attach any fields or taxonomy to any media object, which goes a long way towards handling metadata. However, Media metadata needs are variable and complex. For instance, a field might be fine for adding a taxonomy vocabulary for Video genre or Bird species, but you would need something better if you want to automatically add video duration, YouTube categories, or grab a music file's getID3 data. Basically, we need a larger discussion of what's necessary, what's possible, and how we get there. See this Media metadata issue for more background.

Display Formatting

Currently, we're using the Styles module to power display formatting. We may or may not continue using that. In any case, we'll need to ensure the formatters more closely follow Media Types, and we'll need to offer a pluggable UI for changing formatter style presets, similar to Image Styles (Imagecache in core, for those not yet familiar).

Media DX Summit 2010?

I'd love to lock up some fellow developers for a couple of days in a room to bang on these ideas. At the same time, my partner Gwen is due on May 22 for our second child, so firstly, I can't really travel any time in the foreseeable future, and secondly, even if we had a summit here in Harrisburg, it would either have to be like this week, or in mid-summer. Considering the deadlines involved for this, we need to get cranking. Thus, the summit I would love to see happen will probably either have to happen remotely, or perhaps without my involvement. :(

Anything Else?

Are there any other issues you would suggest to be critical beta-blockers? Do you have any thoughts to add to the issues I've suggested? Please add to this thread!

Thanks,
Aaron Winborn

(Cross-posted at AaronWinborn.com.)

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