LN Webworks: How To Use Cron Jobs For Task Automation In Drupal
The efficiency of any website is a must in this fast-paced world of web development. One of the most important tools to maximize the efficiency of your Drupal site is cron jobs.
Cron jobs are powerful tools that automate any kind of routine tasks of the website which decreases the big load of a developer or site administrator. In this article, I will give you important insights about cron jobs and how we can use them within Drupal, followed by how we customize the tasks by overriding services of the ultimate cron job module.
What is Cron Jobs in Drupal?Cron in Drupal works quite well as it coordinates all the backstage tasks. It handles everything from clearing caches to checking for updates of any kind of content and executing scheduled tasks set by your modules.
The Drop Times: Drupal's Innovation & Future: 2024 and Beyond—Part 2 | Industry Experts' Perspective
The Drop Times: DrupalTO Meetup: Glimpses from the Event—Strategies for a Seamless Transition to Drupal 10
Golems GABB: Boosting Productivity in Drupal with Composer 2
Composer 2 is an effective solution for increasing productivity when working with Drupal. Everyone knows the situation when simple operations take a lot of time. Using Composer in Drupal makes developers' lives easier.
To speed up workflows, web developers often use the same code many times in many projects. This code can be written not only by other people; that's not the point. Regarding programming, rewriting code is a concern for many developers. Composer allows you to get rid of this problem. You can save parts of PHP code and use them for other projects.
LN Webworks: Drupal Configuration Synchronization: A Simplified Guide
When you're adding a new feature, like connecting your contact form to Mailchimp, on your Drupal website, you'll want to make sure it works the same way when you move it from one stage to another. Luckily, Drupal has a handy feature called Configuration Synchronization for this.
This feature helps you easily export and import all the settings and setup between different copies of your Drupal website. In this blog post, we'll take a closer look at how Configuration Synchronization works and some tips for using it effectively. We will also understand the best ways to make sure your Drupal development stays consistent across different environments.
Gábor Hojtsy: This is how I update my Drupal modules to Drupal 11 with only GitLab and drupal.org in my browser!
Drupal's adoption of GitLab lead to five times faster test runtimes but for this post I will look at how it makes it much easier to update modules to a new major version. It is now possible to fully use the user interface of drupal.org and drupal.org's GitLab features to make modules compatible and even make new releases available. I'll use one of my modules as an example: Upgrade Rector. Let's walk through what I did.
Gábor Hojtsy Fri, 04/19/2024 - 10:35Drupalize.Me: Tuning Drupalize.Me Search Results with Solr Query Re-Ranking and Search API
During the Drupal 7 era, we created tutorials on a variety of topics such as Views, Drush, Form API, and theming. When Drupal 8 was released, we updated this content for Drupal 8, 9, and 10. The significant changes between Drupal 7 and modern versions necessitated maintaining two versions of each tutorial on our site: one for legacy Drupal and another for modern Drupal.
Today, we still maintain both versions. The use of our legacy Drupal content has steadily decreased, yet it still has a substantial presence in search results. This often leads to confusion, especially when members trying to learn about features in modern Drupal find themselves on a legacy Drupal tutorial.
In this article, Joe Shindelar writes about his coding experiments to tune search results on Drupalize.Me to favor Drupal 10 content, and demote Drupal 7 content.
joe Thu, 04/18/2024 - 15:44Drupal Association blog: New Things Happening At DrupalCon Portland
I attended my first DrupalCon in 2010 in San Francisco, and since then have attended six more in the US and two in Europe. Many elements stay the same, and are a welcome and treasured part of the DrupalCon experience: The DriesNote, the group picture, the keynotes, the BOFs, the sessions and trainings and parties and hallway conversation, on and on. While you can look forward to more of those this year, here are a few additional features that have been added this year to Drupalcon Portland 2024:
Marketing TrackRecognizing the value that effective marketing brings to Drupal websites, DrupalCon 2024 will feature a substantial amount of content specifically targeted to marketers. The Marketing Track features a dozen sessions of particular interest to CMOs and other marketing professionals, including presentations about AI, Personalization, Content Strategy, and multi-channel engagement. Stay tuned for more information about content of particular interest to CMOs.
Extended Welcoming PartyEverybody likes a party, and this year the opening reception is two full hours. You can look forward to dancing to the robot DJ on a light-up dance floor, recording yourself in the 360 photobooth, playing with a giant Lite Brite, and enjoying free food and drink.
Nonprofit SummitIt’s back! After a short break, the Nonprofit Summit returns to DrupalCon, connecting Drupal users from the Nonprofit sector with each other. Facilitated discussions, round table group sessions, and special pricing for the conference and summit are just a few of the features that will help deliver the power of Drupal to one of our most important communities.
Enhanced focus on studentsDrupal needs to continuously attract new people. Recognizing this, DrupalCon 2024 is making extra efforts to reach out to students. Targeted advertising to local student communities, focusing on the career-enhancing opportunities of the Drupalcon job fair, mentorship, resume help, and a special student discount price of only $50, job fair, mentorship, and resume help are a few of the enhancements that are specifically aimed at students.
Community-designed DrupalCon T-shirtNew this year, the Drupal Association ran a design contest for the official DrupalCon Portland t-shirt. Many great entries were received, and the winning design will be announced at DrupalCon, and available on the free attendee T-shirt.
As you can see, there are lots of new reasons to join the Drupal community in Portland this May. We can’t wait to see you, so register here!
Gábor Hojtsy: New Upgrade Status 4.2.0 is beautiful in Gin, improves continuous integration compatibility and more
Thanks to 13 wonderful contributors, Upgrade Status 4.2.0 is out today! The new version is beautiful in Gin (light and dark mode), but even looks better than before in core's Claro. It improves continuous integration compatibility and has more graceful parsing of Twig templates. It has an updated list of rectorable fixes and is more compatible with Nikic PHP Parser. Thanks (in alphabetical order) to andypost, bbrala, estherp, joseph.olstad, lhridley, loze, mglaman, moshe weitzman, mpaulo, Pasqualle, ressa, risforrocket and saschaeggi for their contribution! Read on to see all the new things!
Gábor Hojtsy Thu, 04/18/2024 - 14:20The Drop Times: Inviting Speakers: DrupalCamp Colorado 2024
The Drop Times: 1xINTERNET Showcases Frontend Editing Module for Drupal
The Drop Times: Drupal Experts Debate Need for New Module to Notify Users of Content Updates
Tag1 Consulting: Getting to Know Your Migration
Series Overview & ToC | Next Article (coming Apr 24th) ### SERIES INTRODUCTION Today, we are excited to launch a detailed blog series that serves as an in-depth guide on utilizing the Drupal 10 Migrate API. This series is designed to equip you with thorough explanations and step-by-step guidance for migrating all your data from a Drupal 7 site to Drupal 10, facilitating a smooth upgrade to the most current version of the platform. As we progress, we will introduce a DDEV-based development environment, complete with instructions to set it up. This environment is prepared with a Drupal 7 site already installed and a Drupal 10 site set as the migration target. Through the course of this series, we will walk you through the entire data migration process, covering a wide range of topics along the way, empowering you to migrate your own sites confidently. Contact Our Solutions Experts Helping you navigate the next steps on your Drupal Migration Journey Want to learn more? The Migrate API, created and co-maintained by Tag1 team members, is a flexible and powerful system that can be used to collect data from multiple sources and import it into Drupal. While migrating...
Read more mauricio Thu, 04/18/2024 - 13:23The Drop Times: Singapore Government Launches Purple A11y for Enhanced Web Accessibility
The Drop Times: Bryan Gruneberg to Highlight Open Source Hosting Benefits at LagoonCon Portland 2024
Nonprofit Drupal posts: April Drupal for Nonprofits Chat: Getting Ready for DrupalCon
Join us THURSDAY, April 18 at 1pm ET / 10am PT, for our regularly scheduled call to chat about all things Drupal and nonprofits. (Convert to your local time zone.)
This month we'll be preparing for DrupalCon Portland, which features the return of the Nonprofit Summit!
And we'll of course also have time to discuss anything else that's on our minds at the intersection of Drupal and nonprofits. Got something specific you want to talk about? Feel free to share ahead of time in our collaborative Google doc: https://nten.org/drupal/notes!
All nonprofit Drupal devs and users, regardless of experience level, are always welcome on this call.
This free call is sponsored by NTEN.org and open to everyone.
-
Join the call: https://us02web.zoom.us/j/81817469653
-
Meeting ID: 818 1746 9653
Passcode: 551681 -
One tap mobile:
+16699006833,,81817469653# US (San Jose)
+13462487799,,81817469653# US (Houston) -
Dial by your location:
+1 669 900 6833 US (San Jose)
+1 346 248 7799 US (Houston)
+1 253 215 8782 US (Tacoma)
+1 929 205 6099 US (New York)
+1 301 715 8592 US (Washington DC)
+1 312 626 6799 US (Chicago) -
Find your local number: https://us02web.zoom.us/u/kpV1o65N
-
- Follow along on Google Docs: https://nten.org/drupal/notes
The Drop Times: Tickets Now Available for DrupalCamping 2024 in Wolfsburg
The Drop Times: Drupal Developer Days Announces Featured Speakers Gábor Hojtsy and Cristina Chumillas
Talking Drupal: Skills Upgrade #7
Welcome back to “Skills Upgrade” a Talking Drupal mini-series following the journey of a D7 developer learning D10. This is episode 7.
Topics-
Review Chad's goals for the previous week
- Test Example
- Set up phpunit.xml
- Start with FrontPageLinkTest.php
-
Review Chad's questions
- In the testing_example module, the file "src/Controller/TestingExampleController.php" has a function for simpletestDescription(). Is this an outdated artifact that should have been removed at some point? The module itself doesn't appear to use Simpletest elsewhere and appears to only rely on PHPUnit.
- What do you recommend for the minimal code structure to include for any given test type? Is the Testing Example module an ideal model or are there other resources I should review? The testing reference from Selwyn was helpful.
- In the "FrontPageLinkDependenciesTest.php" setUp() function, the createContentType() function is called without specifying the type. Is that set somewhere else? I may have overlooked it. Nevermind—it's set using randomMachineName() in the createContentType() function. Is there anything extra or standard to write in tests for drupal.org?
-
Tasks for the upcoming week
- Smart Date - Martin (maintainer) to review promptly, I've already chatted with him about it. Create a new functional test: "submit a range with an end time before the start and validate that an error is returned"
- Create an issue in the Smart Date queue and assign to yourself.
- Create an issue fork.
- Check out the issue fork locally.
- Write (and test) the test locally.
- Commit and push to the issue fork.
- Mark issue as "Needs review".
- Ask someone to review - if all looks good, the reviewer will mark as RBTC.
- Smart Date - Martin (maintainer) to review promptly, I've already chatted with him about it. Create a new functional test: "submit a range with an end time before the start and validate that an error is returned"
Chad's Drupal 10 Learning Curriclum & Journal Chad's Drupal 10 Learning Notes
The Linux Foundation is offering a discount of 30% off e-learning courses, certifications and bundles with the code, all uppercase DRUPAL24 and that is good until June 5th https://training.linuxfoundation.org/certification-catalog/
HostsAmyJune Hineline - @volkswagenchick
GuestsChad Hester - chadkhester.com @chadkhest Mike Anello - DrupalEasy.com @ultimike