On the first submit with the excerpt module, everything works as expected. However, if you leave the excerpt blank, on subsequent edits you have to either delete the excerpt or manually update it. This patch checks if the teaser has been automatically generated, and if so, leaves the excerpt field blank. This way, when the node is saved, the teaser is re-generated from the body.

I've been using this patch in production for quite a while with 5 content editors, and this was how they all felt it should behave. So it's had a few months of live testing - I'd just forgotten to submit a patch!

Thanks,
--Andrew

CommentFileSizeAuthor
regenerate_teaser_on_edit.patch915 bytesdeviantintegral

Comments

hayesr’s picture

Status: Needs review » Needs work

I apologize for how long it has taken me to look at this, but with the current release this patch doesn't seem to apply cleanly anymore. Can you, or someone else running D5 who needs this functionality check into this?

deviantintegral’s picture

Status: Needs work » Closed (duplicate)

Now this is funny; turns out I forgot that I submitted a patch for this in another issue: #149536: Should an empty excerpt default to an empty teaser or to the default teaser?. While I've described it differently, if you look at the patches submitted they're the same :).

Marking as duplicate.