Blog

Redirect form after registration in drupal 8

Sometimes it is needed for a user to be redirected after registration. The user is not logged in yet, and has to go to a landing page with more instructions on verifying his e-mail.

Blog

Trim metatag description to 140 characters in drupal 8

By default drupal will take 600 characters to show your description. But you need to know that this setting is used to show in the metatags as well.

Blog

Get node from url in drupal 8

<pre>
<code class="language-php">foreach (\Drupal::routeMatch()-&gt;getParameters() as $entity) {
if ($entity instanceof \Drupal\Core\Entity\EntityInterface) {
// here $entity is your object
}
}</code></pre>

<p> </p>

Blog

Create forum topic programmatically in drupal 8

The forum module is a core module that was rewritten for drupal 8. In this snippet I show you how to create forum topics programmatically.

Blog

Clear specific cache in drupal 8

Drupal's default caching mechanism is to clear "all" cache. This is rather inefficiënt. There are options to clear specific caches only, here's how.

Blog

A default .gitignore file for drupal 8

This example might help you setting up default installations.

Blog

Tailwind css responsive footer full example

I was building a website with Tailwind and thought it would be nice to share this generic footer html with you.

Blog

Validate numeric url parameter for controller using regex in drupal 8

The routing system that drupal 8 offers is flexible in terms of validation. It is possible to validate your route against some typical regex lines.

Blog

Disable caching on a drupal 8 page controller

Caching in drupal 8 is quite nifty, here's a snippet on how to completely disable caching in your controller.

Blog

Tailwind css introductie (code + video) [dutch]

Ik ben onlangs beginnen experimenteren met Tailwind CSS en dit nieuwe framework biedt een hoop mogelijkheden.

Subscribe to