Posted by asak on September 9, 2008 at 6:02pm
| Project: | Teaser by Content Type |
| Version: | 5.x-1.0 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Issue Summary
This is very simple to implement, but it would be nice if it was default:
Teasers of 50 chars / 100 chars.
Sometimes, that's enough ;)
Comments
#1
I would love to see this too. 50 would be perfect for a project I am working on right now.
#2
just change the numbers in the module file...
#3
I'm a little reluctant to add this feature, as my goal for this module was solely to have identical teaser behaviour as in core Drupal, just split up per module type.
I think it's a change that would be better made in core, or something another module could provide. There would be issues getting it to work with teaserbytype if you wanted both functionalities, but that could be figured out.
Like asak says, you can just alter the numbers in the module file :)
#4
Okay. Thanks. I have done that.
#5
Can the module be altered so that the teaser cuts off after a word (i.e. a space occurrence)?? Right now, obviously, it just cuts after say 100 characters regardless of spliting a word in half.
Thx.
#6
The module uses Drupal core's teaser generating function. AFAIK that shouldn't cut words. Do you get the same problem if you disable this module and set all teasers to 100 characters?
#7
Sorry, but what module do you want me to disable? If you mean disabling your custom TxCT then how do I set all teasers to 100 in the core teaser function? In admin/settings/node-settings the lowest option is 200 characters?
#8
OK, I set it to Unlimited to disable the core teaser function and it appears to be working now.... I will add some more content and see what happens. I'll keep you posted. Thanks!
#9
No luck with this. Any thoughts?
#10
I've just committed a change that gets the list of lengths straight from core.
Try the dev version of this module (when the bot rolls it), along with the attached module.
#11
For D6 I created this patch, see image.
Maybe you can backport it to D5.
Cheers
#12
Would also be awesome to have a ZERO teaser option. This would enable suppressing the body in teasers, which seems like a fairly legitimate need... at least it seems like one in my case :)
#13
My patch for zero length in Drupal 6 here: http://drupal.org/node/271015#comment-3839078