Related Content
Drupal 11: Finding A Better Way To Display Code Examples
I've been running this site for about 18 years now and the code I post has been in much the same format since it was started. The code is rendered onto the page using a <code> element and (mostly) syntax highlighted using a JavaScript plugin.
Drupal 11: Theming The Search API Search Input
A common request I see when theming Search API forms is to swap out the normal submit element with a magnifying glass icon. Performing this action isn't difficult, but it does require adding a couple of operations to add a suggestion so a custom template can be used.
Drupal 11: Controlling LED Lights Using A REST Service
Following on from my article looking at the Pimoroni Plasma 2350 W I decided to do something interesting with the Wifi interface that would connect to a Drupal site.
Drupal 11: How To Alter Entity View Builder Configuration Before Rendering
I encountered an issue on a Drupal 11 site recently where I had a block that was rendering an entity to display on a page.
DrupalCamp Scotland 2025
This year, DrupalCamp Scotland was held on the 7th November, at the University of Edinburgh.
On the morning of the conference I made the quick walk from by bed and breakfast and arrived at 50 George Square to join in with around 60 attendees to a day of talks and chatting.
Drupal 11: Programmatically Change A Layout Paragraphs Layout
The Layout Paragraphs module is a great way of combining the flexibility of the layout system with the content component sytem of the Paragraphs module.
Comments
Thanks Phillip. You just helped me shave 0.5 GB off a database.
For anyone using phpMyadmin to run the SQL, the format is:
Delete `field_data_comment_body`.*
FROM `field_data_comment_body`LEFT JOIN comment ON field_data_comment_body.entity_id = comment.cid
WHERE comment.cid IS NULL
DELETE `field_revision_comment_body`.*
FROM `field_revision_comment_body`
LEFT JOIN `comment` ON field_revision_comment_body.entity_id = comment.cid
WHERE comment.cid IS NULL
Submitted by Mikesnp on Fri, 03/21/2014 - 20:22
Submitted by Roxane on Sat, 05/31/2014 - 15:45
Submitted by Valentin on Thu, 01/29/2015 - 15:03
Submitted by zyvervenz on Mon, 02/29/2016 - 09:59
Add new comment