The right way to check for empty content in Twig
Have you ever used {% if content|render|trim is not empty %}
in twig to validate content is not empty? If so, you might end up with some surprises related to the use of the render
method.
Have you ever used {% if content|render|trim is not empty %}
in twig to validate content is not empty? If so, you might end up with some surprises related to the use of the render
method.
Have you ever happily pushed your latest piece of work ready for others to test only to have it fail the build on coding standards? If so, git pre commit hooks could be your friend!
Display Suite is a handy module we've used for a long time. However for new projects utilising Layout Builder we've found we don't need it. Swap out Display Suite for Drupal 8 core blocks with contexts!
In continuation of a longstanding engagement, PreviousNext were invited by the University of Technology, Sydney, to redesign their website and upgrade from Drupal 7 to Drupal 8.
Read about University of Technology SydneyA new world university built on social justice, sustainability, creativity and collective effort, Charles Darwin University is committed to bringing people together to use knowledge to shape the future and has more than 24,000 students spread across 11 campuses and centres in the Northern Territory, Melbourne, Sydney and online. In September 2017, Charles Darwin University engaged PreviousNext for the redesign and Drupal 8 development of their existing website.
Read about Charles Darwin University: CMS BuildIf you've ever patched Drupal core with Composer you may have noticed patched files can sometimes end up in the wrong place like core/core or core/b. Thankfully there's a quick fix to ensure the files make it into the correct location.
Several times in the past I've been caught out by Drupal's cron handler silently catching exceptions during tests.
Your test fails, and there is no clue as to why.
Read on to find out how to shine some light on this, by making your kernel tests fail on any exception during cron.
We recently Open Sourced our temporary environment builder, M8s. In this blog post we will be demoing everything you need to get started!
Today we are open sourcing m8s (Pronounced just like the thoroughly Australian "Mates"), our tool for building temporary environments as part of our pull request build process.
Its extremely important to have default values that you can rely on for local Drupal development, one of those is "localhost". In this blog post we will explore what is required to make our local development environment appear as "localhost".