This bug is very serious:

If I leave the excerpt field blank, then nothing appears on the frontpage and the break (as html comment) directive doesn't work either!

The correct behaviour is:

Excerpt should check whether the textbox "Excerpt" is blank or filled in:

- If it it filled, then it works just as it works now.

- If it is blank, then it passes control to the blank (html comment) directive.

CommentFileSizeAuthor
#1 blank-excerpt.patch535 bytesezheidtmann

Comments

ezheidtmann’s picture

StatusFileSize
new535 bytes

Here's a patch that fixes this by automatically filling in the excerpt with the default teaser when the excerpt is left blank. Changes to the node body won't update the excerpt, but the excerpt can be set to the teaser by blanking the excerpt and then previewing or submitting the node.

ezheidtmann’s picture

Please be aware I'm new to Drupal hacking. This patch, simple as it is, may do weird things I haven't anticipated.

ezheidtmann’s picture

Of course, this is now at patch status.

Steven’s picture

Version: » 6.x-1.x-dev

Fixed in CVS. I added some explanation about this (leave blank to autogenerate).

Note that most contributed projects follow the drupal codings standards. Your patch had tabs in it.

nsk’s picture

Version: 6.x-1.x-dev »

Now that it is fixed in CVS, how can I apply the fix? I mean, I use the 4.5 version. Will you ship an updated 4.5 tar.gz file including the fix?

Anonymous’s picture