Community Documentation

1 - Using CCK handler

Last updated September 12, 2010. Created by psynaptic on July 16, 2008.
Edited by Itangalo, sevi, chiddicks, choster. Log in to edit this page.

Read values from a CCK field. Write values to a CCK field. That's all this handler is about and that's all you need to know about this handler.

The DraggableViews CCK handler module comes with the DraggableViews module. If you want to use both the flexibility of CCK fields and Draggable table style plugin you'll need the DraggableViews CCK handler as a coupler.

Supported CCK fields

  • Order field: CCK Number Integer (Decimal and Float are not supported!)
  • Parent field: CCK Node Reference

How to configure my draggable View with CCK fields? (it's always the same)

  1. Enable the "DraggableViews CCK handler" module.
  2. Navigate to the edit-page of an existing view.
  3. Add the field Your CCK Integer field at the Fields section.
  4. Now change the Style-plugin at the Basic settings section to Draggable Table and enter the Style plugin settings.
  5. Scroll down to the Draggable Table settings and choose the CCK Integer field you added just before. Choose "CCK" handler. (that's actually the only difference to the native way)
  6. Save the settings. You'll be prompted to sort the view by the CCK Integer field. Save the view and you're done.

Simple lists

See "How to configure my draggable View with CCK fields? (it's always the same)".

Hierarchies with CCK fields (it's always the same)

If you want to build hierarchies you have to set the parent field. Use "Your CCK Nodereference field" and choose "CCK" handler (that's actually the only difference to the native way). The maximum hierarchy depth can be specified at Define the depth limit.

Pro's and Con's

  • - much overhead, because Drupal needs to walk through all the CCK functions whenever a single value gets saved (probably including security checks).
  • + highly compatible with other modules. E.g. you can make CCK order fields editable at the node edit form.

If you don't need to use the order/hierarchy values with other modules you should always use the native handler.

Here's a quick screencast on how to use CCK fields with DraggableViews: http://nodeone.se/blogg/nodeone-talks-drupal-draggableviews-and-cck-fields

Comments

Had trouble until I set root node type

I figured since there was only one node type and no tree setup that the top option was enough (see http://www.rivervalleytechcollective.org/node/845 image) but I needed both.
Thanks for this help file though.

I've changed the content of this page

I'm sorry that I've changed the content of this page.
But I'm still interested in your issue. Do you still need both options with the the BETA7 version. It really should work without the type-root selected.

Example Links are Bad

The links to the examples all are bad.

HAJ

About this page

Drupal version
Drupal 6.x
Audience
Site administrators
Drupal’s online documentation is © 2000-2012 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License.
nobody click here