I am attempting to change the teaser length to 400 characters, and it seems to work when I set it, however after someone posts content then it gets changed back to 1600 characters somehow automatically. I'm the only admin. Does anyone have any idea what is going on?

Comments

johnhanley’s picture

Even though you've changed the teaser length, any pre-existing teasers stored in the node_revisions table will still be the old length.

Here's a nice article that tells you how.

I've never understood why Drupal has a separate teaser field in the first place. It'd be much easer and more flexible to simply output a truncated body. Oh well.

joachim’s picture

Rather than use a script, there's a module that regenerates teasers: it's called retease.

Though I'm not sure this is what the OP needs -- s/he seems to describe new nodes not picking up the new setting.

johnhanley’s picture

It makes more sense to perform this operation once (via a script) than to install yet another contributed module.

ragsman’s picture

Ok, so according to that article I have to run that script to change all past teaser legths for it to truly 'take' even for future posts. I'll try that!

thank you,

Ragsman

joachim’s picture

I don't think it says that :/
Once you change the teaser setting, nodes you make in the future will follow the new setting.

What you basically have to remember is that the teaser is made and saved when the node is saved -- it's not made live when you view the node.

ragsman’s picture

Well then this won't fix my problem. I change the teaser length in the admin panel (Post settings), then after I go back to my site after some new posts have been made it has reverted back to the original settings (usually 1600). I understand the new settings would only be for new posts, but something is causing it to change back without my intervention.

Ragsman

ragsman’s picture

I tried running the script (which works!) but this phenomenon is still occurring. The teaser is reset to 1600 characters without my input. Does anyone else have this problem?
The only other thing I can think that might be causing this is I had the module 'superteaser' installed at one time, but it is now removed. I can't see any database tables associated with it to delete.

I would LOVE some suggestions to help solve this problem!
The site is http://nucpros.com

Ragsman