How To
clarkburbidge - February 5, 2009 - 20:23
| Project: | CCK Teaser Field |
| Version: | 6.x-1.0-beta1 |
| Component: | Documentation |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Anyone want to give a quick and dirty how to for this module?

#1
I am going to write some lines within the next days. In case I forget anybody feel free to remember me.
#2
I wrote the above lines after enabling the module and a quick overview. Everything seemes clear. But saddly, when I wanted to really use it the next day I could not figure out how to use it. So please, if anybody has it right, please enlighten us (see #233702: Does dev release work as it is?).
#3
A brief look at the code suggests that all this module does is hide the in-built 'body' field if a node of the appropriate type is rendered as a teaser. The CCK module then adds its fields based on the settings on the "Display Fields" page (in the Content Types management area).
Having poked around the issue queue it looks like this module historically did a lot more (allowed admins to nominate a specific CCK field and maybe even created a specific field type for that purpose?), but as time has moved on the CCK field management options have improved. It now offers most of the functionality that has been requested of this module at one time or another, and so is allowed to do all the grunt work (since Jan 2008 or thereabouts).
TBH, given the fine control CCK now offers over what fields to display in the teaser / page views, it's possible to use that for most of the use cases this module was designed to cover. If it's a matter of presenting different text in the page and teaser view, one can simply create two different CCK textarea fields instead of using Drupal's 'body' field at all.
#4
While I'm here, to actually answer the question rather than purely criticise, here's how to use the module:
1) Create a CCK field called something appropriate (eg 'teaser')
2) Visit the 'Display Fields' tab; configure the 'teaser' field to be <hidden> on the "Full Node" view. Make sure it's still visible in the "Teaser" view.
3) Visit the 'Edit' tab; in the "Workflow" concertina set "Construct teaser only from teaser fields" to "Enabled".
Drupal's Body field should now be hidden when the node is displayed as a Teaser, but visible on its Full Node page.