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.
My problem:
Between the
node_load()
and anode_save()
, what parts should I care about, just place a<!--break-->
in$node->body
or adjust$node->teaser
?I had the problem after adjusting
$node->teaser
and 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 itsnode_teaser()
function?
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.)