herzbube.ch

Article focuses in some way on my website herzbube.ch.

Manual teaser breaks vs. "Filtered HTML" text format

Posted on: Wed, 05 Dec 2018 16:54 By: patrick

Placing the following line inside a Drupal story node's body (I guess it also works for other content types) adds a manual teaser break:

<!--break-->

This works fine when the story uses the "Full HTML" text format. It stops working, however, when the story's text format is switched to "Filtered HTML" - in that case Drupal simply ignores the manual teaser break and auto-breaks wherever it sees fit.

For Drupal 7, a bug report was submitted 8 long years ago, and the issue is still open today. I can only imagine that they didn't fix it because a workaround exists: A site admin can add <!--> to the "Filtered HTML" text format's set of allowed HTML tags.

In Drupal 8 this workaround is no longer available because in Drupal 8 the "Filtered HTML" text format unconditionally filters out all HTML comments. A few days ago I submitted another bug report on drupal.org for Drupal 8, and today I decided that I'm really not in the mood for going through all my old stories and switch those with manual teaser breaks to "Full HTML". Instead I wrote a patch that fixes the issue and that is now live on this site. If you're interested you can find the patch in the bug report referenced above.

Site upgraded to Drupal 8

Posted on: Wed, 03 Oct 2018 21:19 By: patrick

After two weeks of work I have more or less completed the upgrade of this website from Drupal 7 (D7) to Drupal 8 (D8). Also part of the package is a new theme (the "Nexus" theme) because the old Drupal core theme "Garland" has not been ported over to D8. I'm not as happy with the new theme as I was with "Garland" (for instance, check out how ugly the "Add new comment" form looks like), but for the most part it's quite OK.

Added Flattr buttons

Posted on: Sat, 28 Sep 2013 14:41 By: patrick

Yesterday I decided to start using Flattr on a regular basis. The intention is to be mainly a supporter, but I certainly won't refuse if someone insists on sending a flattr my way ☺. As a consequence, you now see a "Flattr this" button at the bottom of every page on this website - you can use this to express your general approval of the site. If you like a particular post, you can also use the button on that post. This being a Drupal site, Flattr integration naturally is realized with the Flattr module. The documentation for the module is a bit sparse, so I wrote a few notes about its configuration on my wiki.

Site maintenance

Posted on: Fri, 15 Jun 2012 04:14 By: patrick

This site is undergoing maintenance: I am in the middle of upgrading from Drupal 6 to Drupal 7, and as you can see for yourself quite a few things do not yet work as they should. Thank you for your patience while I try to get everything back into shape.

Update, 19 June 2012: Most of the site should now work again as before. The former site theme (Sky) unfortunately is no longer available with the same design, so for the moment I'm leaving the site on the core theme, Garland. On the plus side: Comments are now protected again with reCAPTCHA.

Topics

Comment spam found *sigh*

Posted on: Mon, 14 Sep 2009 17:07 By: patrick

Today I was surprised to notice that some blog entries on this website have received a couple of comments. On closer inspection, though, it turned out that the comments were merely comment spam. It is a mystery how the spambot responsible for the comments managed to circumvent my CAPTCHA system, but I guess I should have known that it would happen eventually. After all, the spam bastards of this world are wildly determined to destroy the fun and usefulness of everything, including this little, insignificant website :-(

Topics

New site theme

Posted on: Wed, 07 Jan 2009 01:09 By: patrick

I recently upgraded my site to Drupal 6. Unfortunately, I had to abandon my beloved Aqua theme in the process because nobody had ever bothered to rewrite the theme for Drupal 6, and I had not an inkling of how to do it myself.

For the moment, the Sky theme serves as a replacement. Let's see how it stands the trial period...

Subscribe to herzbube.ch