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 ;)
| Comment | File | Size | Author |
|---|---|---|---|
| #11 | teaser-by-type-settings.gif | 15.52 KB | bartezz |
| #11 | teaserbytype.module.d6.patch | 8.8 KB | bartezz |
| #10 | teaserlengths.zip | 742 bytes | joachim |
Comments
Comment #1
chadcross commentedI would love to see this too. 50 would be perfect for a project I am working on right now.
Comment #2
asak commentedjust change the numbers in the module file...
Comment #3
joachim commentedI'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 :)
Comment #4
chadcross commentedOkay. Thanks. I have done that.
Comment #5
bellkiss commentedCan 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.
Comment #6
joachim commentedThe 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?
Comment #7
bellkiss commentedSorry, 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?
Comment #8
bellkiss commentedOK, 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!
Comment #9
bellkiss commentedNo luck with this. Any thoughts?
Comment #10
joachim commentedI'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.
Comment #11
bartezz commentedFor D6 I created this patch, see image.
Maybe you can backport it to D5.
Cheers
Comment #12
doublejosh commentedWould 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 :)
Comment #13
doublejosh commentedMy patch for zero length in Drupal 6 here: http://drupal.org/node/271015#comment-3839078