Grayside.Org

Home

cck

Spaces Integrating a CCK Field

grayside — Mon, 07/26/2010 - 12:25

I wanted to make a CCK Field available only when a given feature was enabled. It turns out it’s really easy.

CCK comes with a hook_field_access() hook (see content_access()). Any implementation of this function that returns FALSE for a given field results in that field being denied to the user.

By implementing this function with a Spaces API call instead of the content_permissions module approach of a new, field-specific permission, all kinds of magic becomes possible.

Read on for demonstration code.

  • access control
  • cck
  • openatrium
  • spaces
  • Add new comment
  • Read more

Remove CCK Fields from the Node Form

grayside — Thu, 11/12/2009 - 15:05

There is a fine tutorial on drupal.org describing How to set the disabled attribute of a CCK field on your node add/edit form. All that does is deactivate the input widget without removing the clutter. Let’s get rid of the form elements entirely.

  • cck
  • drupal
  • how-to
  • node-form
  • Add new comment
  • Read more

CCK Fields and the Open Atrium Node Form

grayside — Tue, 11/10/2009 - 16:04

OpenAtrium has some pretty slick styling of it’s node add/edit form. Unfortunately, when you add a CCK field to it, you get something comparatively under-styled and in the main column of the form.

If you want to get that slick styling and move the CCK fields to the right, try the following:

  1. Go to admin/build/modules and enable the Fieldgroup module under CCK.
  2. Go to the Manage Fields page for your content type. Create a new group, the machine name starting as group_sidebar.
  • cck
  • drupal
  • node-form
  • openatrium
  • 1 comment
  • Read more

Field Permissions Plus

grayside — Wed, 09/23/2009 - 12:03

This Drupal module provides a more flexible framework from granting and restricting access to the content of CCK fields.

  • cck
  • drupal
  • field-permissions-plus
  • fields
  • module
  • permissions
  • Add new comment
  • Read more

Field Permissions Plus: 2.x Already?!

grayside — Tue, 09/22/2009 - 15:39

Field Permissions Plus has barely been released, but FPP 6.x-2.x-dev is already making progress.

Related To: 
Field Permissions Plus
  • cck
  • drupal
  • hook
  • module
  • permissions
  • Read more

Field Permissions Plus: Complex Access Schemes

grayside — Wed, 09/09/2009 - 14:09

This post refers to Field Permissions Plus 1.x

This Drupal module provides View Own and Edit Own permissions for CCK fields. As a necessary step, Field Permissions Plus supercedes CCK’s Content Permissions module so the View/Edit [all] permissions it provides play nice. With this module, if you give a role the ability to View a field, or to View Own a field, they will be able to see it.

Related To: 
Field Permissions Plus
  • cck
  • drupal
  • fields
  • module
  • permissions
  • Read more
Syndicate content

Monthly archive

  • July 2010 (2)
  • June 2010 (6)
  • May 2010 (9)
  • April 2010 (5)
  • March 2010 (6)
more

Feeds

  • Syndicate contentHeadlines
  • Syndicate contentDrupal Planet
  • Syndicate contentAtrium Headlines

casetracker cck drupal features FL3 freelinking module og openatrium permissions plugin spaces
<all>

© 2009 grayside.org ♠ Glossary ♠ Powered by Drupal ♠ Floating on Archlinux