Hi,
It seems there's no teaser value in a CCK content. I have done a var_dump($node), and I saw no teaser. And of course if I do a print $node->teaser , it does not work.

I think a teaser is very important for such a node type...

Moreover, if you add a teaser to CCK, please do so like in flexinode. In flexinode for each field we could setup if it should appear in the teaser or not.

Thanks

Comments

Permanently Undecided’s picture

I'm experiencing a similar issue, but with standard drupal content types rather than content types generated by CCK.

JonBob’s picture

Component: Code » content.module
solutiondrop’s picture

I was wondering if anyone knows the status of CCK teasers and wether they are working on anyone elses site?

I could have sworn that I had teasers working using a CCK content type in an earlier sandbox site I was messing with, but now teasers don't work at all. Maybe they never did. I did a complete fresh drupal cvs install with only blog and story modules activated in addition to the latest cvs of CCK (April 26th) and created a story entry, a blog entry, and then a CCK content type with only 'title' and a body 'text field'.

As shown on my test site, http://somebodypinchme.com/, both the blog and story entries show the teaser on the frontpage, while the CCK entry at the top shows the full node.

I've read through the issues and have seen a glimpse that Jon Bob mentioned "Teaser handling has to be revamped in general, but this patch is more correct than the current behavior. Applied." over at http://drupal.org/node/56299 ... and there was one issue about CCK possibly breaking teasers for non-CCK content type modules, http://drupal.org/node/52167. But I wonder if anyone knows the status of teasers in CCK?

Also, on another Drupal CVS install I tried to create a view page and block showing teaser from a CCK content type, but they both showed the entire entry.

Thanks everyone for such fantastic work. Drupal is really becoming quite the framework this last year or so.

DS

JonBob’s picture

Priority: Critical » Normal

Since this is no longer affecting non-CCK nodes, I'm downgrading it.

Until we get this solved in a more general way, you can present a custom teaser in your theme, by testing if $teaser is TRUE and printing a different set of fields in that case.

JonBob’s picture

Title: Teaser does not work with CCK content » CCK nodes do not auto-generate a teaser
David Lesieur’s picture

Status: Active » Closed (duplicate)

Marking this as duplicate because the discussion in this issue is more advanced.