The Drop Times: 7 Reasons Why Drupal Is the Best for Travel Agency Websites
Drupixels: Automatic Entity Label: Automatically generate entity titles in Drupal
Drupixels: First 5 Drupal modules to install to make your life easy
mandclu: Creating Dynamic Tabs on Content Types
LN Webworks: Drupal Features:The Essentials You Need to Know
Dropsolid Experience Cloud: Mautic for Developers: connecting Drupal content to Mautic email marketing
LN Webworks: The Power of Experience-led E-commerce: Combining Content and Commerce with Drupal
The Drop Times: Drupal Is Now a Digital Public Good
Gizra.com: How We Theme in Gizra with PEVB and a Composable Approach
Theming is hard. It’s usually the most time-consuming part in our work. Writing a DB query or baking logic into a Drupal hook is the easy part. The main challenge is making an element look like the design and appear correctly on different devices and browsers.
Our main goals remain the same as from this post:
- Standardization in multiple projects
- Reduction in cognitive load
- Optimization for rewrites
All the code examples in this post are inside our Drupal-starter. You can install it locally, and see all the elements under the Style guide page - https://drupal-starter.ddev.site:4443/style-guide. The Drupal-starter code base is used as the starting point of our projects, so you’ll find it very mature!
An example News node on a fresh Drupal starterA quick reminder is that for theming, we’re using the Pluggable entity view builder module, known as PEVB.
Back to our problem - we don’t want to theme the same things over and over again. This sounds trivial, but I’m sure many are doing that. We have! Here’s an example of two different twig files:
<div class="flex flex-col gap-y-3 md:gap-y-5"> {{ title }} {{ body }} </div> <div class="flex flex-col gap-y-3 md:gap-y-5"> {{ author }} {{ teaser }} {{ date }} </div>The cards’ contents differ but the wrapper classes are the same. Also, the chances of changing the gap on one twig file and forgetting the other are high. At least for us, on bigger projects, updating the gap on only some files was a common thing.
Let’s think of the designer for a moment. Should the gap between items be 20px or 24px? The answer, for us, is “whatever works best as long as it’s consistent™.” If one card is 20px, then all cards should be the same. To deal with that, we have a limited set of trait methods:
- wrapContainerVerticalSpacing (20px)
- wrapContainerVerticalSpacingTiny (2px)
- wrapContainerVerticalSpacingBig (40px)
- wrapContainerVerticalSpacingHuge (60px)
Acquia Developer Portal Blog: How to work with Code Studio Automated Code Updates
As a developer, we’ve all experienced the time it takes to maintain a Drupal application, let alone 100s. Pulling the latest code changes, creating a new feature branch, syncing the DB from PROD to grab the latest content, updating composer, exporting configuration and pushing back up. Even if you are already set up with a local or Cloud IDE, this can take some time. Yes, there are tools we can use to speed up this process, drush, hosting CLIs, automated scripts… but again, this is just more to maintain and update to newer versions, when PHP or other software gets released.
As you know, a CI/CD pipeline is also one of the most valuable tools a team can use to ensure the code is scanned for governance, standards and security. Acquia CI/CD Pipelines has been the solution for many of our clients in order to build
Chromatic Insights: Drupal 7 End-of-Life Podcast - Episode 04
LN Webworks: Pros and Cons of Choosing Drupal for Your Large eCommerce Website
LN Webworks: Looking Ahead: Navigating Drupal in 2023 and Beyond
The Drop Times: Best 7 Places to Visit in Pittsburgh for DrupalCon
The Drop Times: How We Built a Newsletter System on Drupal with Mailchimp Integration
Gizra.com: How AI Tools Streamline Everyday Tasks for Developers
The world of software development is constantly evolving, and with the recent advancements in AI technologies, developers now have powerful tools at their disposal to help with everyday tasks. In this blog post, we will discuss how AI tools like ChatGPT and GitHub CoPilot have made a significant impact on our workflow, increasing productivity and improving the quality of our work.
GitHub CoPilot: The AI-Powered Assistant for DevelopersI have been using GitHub CoPilot since August 2022, and it has proven to be an invaluable asset. It has provided the following benefits:
Speeding Up Smaller TasksGitHub CoPilot has significantly sped up smaller tasks such as creating demo content in CSV files, updating hooks, and managing dependency injections. This has allowed our developers to focus more on complex tasks and problem-solving.
Dependency Injection is a fundamental part of Drupal development, and it’s a chore that we need to do over and over again. Here’s how CoPilot speeds it up for an existing class:
Your browser does not support the video tag. Injecting renderer service into an existing classDemo content is essential for our way of developing and it also makes testing much easier. But the creation of such content was, well, boring. Here’s how CoPilot speeds it up:
Your browser does not support the video tag. Generating meaningful demo content in CSV filesDrupal Association blog: 5 Fun Things to do in Pittsburgh for DrupalCon 2023
Have you saved the date yet? The beautiful city of Pittsburgh, PA, will host the next DrupaCon North America from 5th through 8th June 2023. I know it feels like just yesterday that DrupalCon North America 2022 zipped by, and we’re already talking about DrupalCon 2023!
Famously known as the “Steel City” (the largest steel-producing city in the world) and “City of Bridges” (a staggering 446 bridges!), Pittsburgh is one of the top most liveable cities in the United States. When you’re here, you will be surrounded by warm and kind Pittsburghers (as they like to call themselves), world-class breweries and distilleries, green spaces, and some gorgeous views. Need more reasons to visit Pittsburgh?
What's hot in The 'Burgh 1. Carnegie MuseumsExplore the marvels of art, natural history, and science at the world-renowned Carnegie museums. Featuring four dynamic and diverse museums, including the Carnegie Museum of Art, the Carnegie Museum of Natural History, the Carnegie Science Center, and the Andy Warhol Museum, Carnegie museum has something to appeal to everyone. While you’re here, don’t miss checking out the first fossil of the Tyrannosaurus rex dinosaur on display, the PaleoLab, where paleontologists prepare specimen for display, contemporary American and European artwork at the Hall of Sculptures and the Scaife gallery, and their constant changing art and science exhibitions. You can find more information about visiting the museum here.
2. Phipps ConservatoryIf you enjoy the beauty and serenity of nature and the green outdoors, Phipps conservatory is the perfect place to visit. While it opened its doors to the public way back in 1890, its greenhouse production facility is a fantastic example of cutting-edge and sustainable innovation. It is the first to receive the Platinum LEED certification, a globally recognized symbol of sustainability achievement. When you’re here, you can stroll around the enchanting outdoor garden, check out the impressive glasshouses, explore the Tropical forest conservatory, and learn about their green innovation initiatives at the Center for sustainable landscapes. Before you plan your trip, visit their website to find out more about their immersive rotating exhibitions for that month.
3. Duquesne InclineTake a ride back in time and explore one of Pittsburgh’s best panoramic views from a funicular railway (incline) experience. The Duquesne incline glides 400 feet above Pittsburgh’s rivers (the Ohio, Monongahela, and Allegheny) and is the only other remaining funicular in the country. While on the ride, you will climb (or descend) the hillside of Mount Washington. At the top station of the incline, you can explore the Observation deck and also dig deeper into its history and operation. The great part about the experience is that there’s a ride every 5 minutes, which means no waiting! No pre-booking is needed, but make sure you have the exact change for the quick ride.
4. Heinz History CenterWant to ‘ketchup’ on the history of Pittsburgh? Then you must visit the Senator John Heinz History Center located in the Strip District. It has something for every history buff, be it about the first settlers of Pittsburgh, the revolutionary war, the industrial revolution, sports, pop culture, and much more. It highlights the contributions of Pittsburgh’s locals to mankind, like the first polio vaccine, the Ferris wheel, revolutionary public TV broadcasting, and also the Big Mac! One of the most interesting attractions (and obviously) is the Heinz exhibit that displays everything you wanted to know about how they started way back in the 1900s to where they are today. Go plan your visit!
5. Rivers of Steel - Uniquely Pittsburgh Sightseeing TourIt would probably be a sin to miss a river cruise when you're in the city of rivers and bridges. Especially when it gives you a unique, historical experience of the rich heritage of southwestern Pennsylvania. The Uniquely Pittsburgh sightseeing tour by the Rivers of Steel offers an informative tour to enlighten tourists about the past and present of the beautiful city. You can also find various vantage points for the best views and to click amazing photographs with a backdrop of Pittsburgh. Find out more about this 90-minute river tour here.
And that’s not all! There’s so much more to explore in the ‘Burgh while you’re here for DrupalCon North 2023. As spring transitions into summer, June is one of the best months to visit Pittsburgh, with many interesting outdoor events taking place around the city.
But don’t take our word for it. Our Drupal Pittsburgh Local Ambassador, Bill Renk, “Pittsburgh is the perfect fit for DrupalCon because Pittsburgh not only embraces Drupal, as seen by Drupal's adoption by its two major universities (Carnegie Mellon and the University of Pittsburgh), but Pittsburgh is a reflection of the Drupal community itself – friendly, welcoming and hard-working!”
The Drop Times: The Dutch Drupal Foundation Welcomes Three New Board Members
Lucius Digital: Drupal Theming: how to remove all 'filter tips & guidelines' in Drupal 10 core theme 'Claro'
So I'd like to keep the admin UI as clean as possible for clients, and since they only use one text format at the moment, all filter guidelines and tips are cluttering the Drupal administration interface too much. So in previous Drupal versions there where modules to fix this, but for 10 not (yet) available.
Also, I'd like to keep overhead to a minimum and 'every module counts', so here is a simple solution.
- Create a subtheme for Claro
- Add an extra theme library
- Let that library contain a css file, that hides filter tips
Also mighty handy for all kinds of additional Drupal administration theme tweaks and optimizations!
Here's the code: