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 had a project where you've used a core or contributed module but been asked to make slight changes to base fields? e.g. Changing the field title, default value, required state or description?
Read on to find out how to use a little-known feature of core to make these changes with only configuration.
It is Internet Explorer's retirement next month (June 15th), and it’s well and truly time for you to stop supporting it on your website for any current and future development (you have already, I hope).
This also presents an opportunity to pull out any code solely because of Internet Explorer and start living in the modern (browser) world.
This post introduces a completely new way of implementing Drupal hooks. You can finally get rid of your .module
files, eliminating many calls to \Drupal
with dependency injection in hooks.
As we enter our 14th year of operations in 2022, PreviousNext is taking a bold step into employee ownership, utilising a groundbreaking approach that’s only recently become possible in Australia.
This year a fork of Elasticsearch was created called OpenSearch. The reasons behind it are varied, and I'm not going to get into that side of things other than to say there are two sides to every story, and it didn't end well.
Our Skpr hosting platform offers a managed AWS Elasticsearch service. As a result of the split, AWS has deprecated Elasticsearch and is migrating all of its managed services to OpenSearch.
This left us in a bit of a difficult situation.
In this blog post, we explain our rationale for choosing to fork Elasticsearch Connector and create a new Search API OpenSearch module.
As an open-source project, Drupal relies on the sustained contributions of individuals and organisations to keep it well maintained, develop, and grow to stay relevant in a competitive landscape.
The project founder, Dries Buytaert has highlighted the problems many open source projects have of balancing the makers and takers. Increasingly, organisations that have traditionally contributed to Drupal have had challenges keeping the level of contribution going, and have had to look to new ways to support the project.
Sponsoring Drupal contribution is a new and exciting way for PreviousNext to give back to the project as well as the community.
Front-end technology stacks tend to move quickly. At PreviousNext, we have been constantly evolving the tech stack to take advantage of best-practice.
In this post, we take a closer look at the front-end tools we use at PreviousNext in 2021 and some of the rationale behind the decisions.
As a company that's been running since 2009 we've evolved our working culture and approaches over the course of the past decade. When new people do join we provide them with a handbook that outlines how we work together and the benefits we all enjoy, so we wanted to share some of this publicly for people that might be considering roles we're currently advertising.
As a follow up to some recent blog posts, as well as improvements in PHPStorm and ddev, I’d like to share the following configuration for running and debugging tests via PHPStorm's phpunit integration.