Module Monday: CCK Blocks

Module Monday: CCK Blocks

Put your fields in their place

Drupal gives site builders and designers a lot of flexibility, but the simple task of moving part of a node’s content out of the main content region can be shockingly complex. Tools like Panels, Display Suite, and custom theming tricks can all get the job done, but for simple applications like putting attached photos into a sidebar, they can be overkill. Enter CCK Blocks, a simple little module that does just one thing: stick your CCK and FieldAPI fields into configurable blocks!
Screenshot of the field display settings page
Setting up CCK blocks takes a few steps; on each Field’s configuration screen, you can check off the “expose this field as a block” option. Once that’s enabled, a new block containing that field’s content is available on the block administration page. Using the Field Display Settings page, you can also change the formatter and formatter options are used to display the block.
One of the common use cases for the module is creating an “Author bio” or “Notes” text field, hiding it on the content type’s Full Page mode, and enabling the sidebar block. When you view a node’s full page, that field will appear in its own block in the region of your choice.

Leave a Reply

Your email address will not be published. Required fields are marked *