The function generating teasers in D6 does not make nice teasers. At the same time I do not want to bother my users to set teasers themselves, I would rather get rid of the whole system.
Anyway, I tried writing a little helper module which went through the published nodes and tried to correct teasers that were too short or too long.
node_save(), what parts should I care about, just place a
I had the problem after adjusting
$node->teaserand deleting the break; the "Show summary in full view" checkbox was unchecked when manually editing this node. Which variable is controlling this checkbox and how do I set it?
If I wanted to implement some teaser-corrections via
hook_nodeapi(), which event should I hook to, when I do not want to patch the node core module and interfere with its
I know there are a couple of modules around, that store teaser data in separate CCK fields. I would like to avoid this if possible. (and yes, I want to have a proper value for the teaser variable and not just manipulate the output via views etc.)