Testing Twig templates and custom JavaScript with Jest
Jest is the defacto standard for testing in modern JavaScript, but until now, we haven't been able to leverage it for testing in Drupal. Thanks to twig-testing-library, that's changed.
Welcome to our growing knowledge base.
Jest is the defacto standard for testing in modern JavaScript, but until now, we haven't been able to leverage it for testing in Drupal. Thanks to twig-testing-library, that's changed.
Drupal 8 comes with a Diff component in core. It's mainly used for showing changes to configuration or content revisions. However, it can be used in other ways too. Here are some quick steps to show how to use the Diff component in your custom forms or controllers.
For a recent project a client asked us to investigate an "instant search" feature, where as the user begins to type, suggestions for matching pages appear immediately. The following post introduces the Search API Lunr module and how it solved this problem for us.
Drupal 9 is just around the corner. Here's what you need to do to ensure a smooth upgrade.
Like many companies, PreviousNext didn't expect the Coronavirus crisis to hit so hard or quick, nor did we anticipate the rapid effects on the global economy. However, we have always run our company based on sustainable principles, so feel well prepared to deal with what's coming over the next few months. We hope sharing our approach might help others weather the coming storm too!
As one of the longest-running and largest Drupal events in the Asia-Pacific region, DrupalSouth is an opportunity for the greater community to come together and celebrate all things Drupal. In 2019, DrupalSouth will be making its way for the first time ever to Hobart, Tasmania, under Downunder!
Images on websites can be a huge pain when you are optimizing a site. We want our images to render as crisp as possible but we also want our sites to load as fast as possible. Content creators will often ask "what size image should I upload" and with the thought of some tiny image being rendered at full-screen width pixelated out of control we'll answer "as large as you've got". The content creator will then upload a 2mb jpeg and the load time/network request size will increase dramatically.
PreviousNext builds open source digital platforms for large scale customers, primarily based on Drupal and hosted using Kubernetes, two of the world’s biggest open source projects. With our business reliant on the success of these open source projects, our company is committed to contributing where we can in relation to our relatively small size. We get a lot of questions about how we do this, so are happy to share our policies so that other organisations might adopt similar approaches.
PreviousNext continue to be major contributors to the development and promotion of Drupal 8. As participants of the Drupal 8.8.0 Beta Testing Program, we thought it would be useful to document the steps we took to update one of our sites on Drupal 8.7 to the latest 8.8.0 beta.
Every site is different, so your mileage may vary, but it may save you some time.
Since co-founding PreviousNext in 2009 with Kim Pepper, our company has put a lot of focus into supporting the Drupal open source project and community at a regional and global level.