Hello, I assumed this module would include an empty teaser option and the description under the size select box said "Unlimited" would accomplish that. However, the code does not reflect that. I added a "Suppress" option to the list and an empty return to the module. The details about it are here... http://drupal.org/node/43130#comment-883566

Fairly simple. I think it would be a good addition. I have a CVS account, but have never added a patch. I'm willing to do it and would love to help, but I need some guidance.

Thanks for the module.

CommentFileSizeAuthor
#4 allow_teaser_suppression.patch2.46 KBdoublejosh

Comments

joachim’s picture

Status: Active » Closed (won't fix)

As of version 6, I'm able to use Drupal core's teaser generating function directly, so I'd rather stick to that instead of recoding it to do different stuff.
Also, I don't think this is the right way to suppress a teaser completely: theming, or creating a view that shows only titles would be the better method, I think.

msumme’s picture

Status: Closed (won't fix) » Needs review

Actually being able to suppress teasers by content type would be VERY useful.

For example, with views attach, you can attach an embedded view into the teaser build of a node, but you can't attach the same type of view to another view that's just fields.

For example, if you want to have galleries with descriptions that don't show up under teaser build, but don't want to disable teasers site-wide, and then go through and one-by-one enable them with this module.

Also, I rolled a quick and painless change into the module. It adds a text box instead of a select, so you can make them whatever length you want.

I only changed #type to 'textfield' and deleted the options, and set the default to something reasonable. I didn't know how to access the system teaser length variable.

Would there be any way to disable teaser output? I'd be willing to do the programming if someone would give me a clue.

Thanks,
Max

doublejosh’s picture

Ha. Found this post from two years ago that I guess I made. Need this options again.
I love using teaser and full nodes in views to have standard teaser modes for content types, and then showing those... rather than theming views.
Once, again suppressing the body while in teaser mode so as just to display several fields and title seems super useful.

+1 on my own post :)

doublejosh’s picture

StatusFileSize
new2.46 KB

Here is the patch for the Drupal 6 version.

PS: The reasoning was to have a CCK field for the summary view that is different than a truncated node body as the teaser.

Hope it makes more sense now 2 years later :) Though 7 may allow for this more simply with it's much improved field system.

doublejosh’s picture

Interested in accepting this feature add? No work, patch is ready. Just needs review.