From 5ac6c3272571aa96e6dc43509862209ac1117928 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Wed, 3 Jan 2024 20:00:00 +0000 Subject: [PATCH] Add daily email for 2024-01-03 Why you need to start upgrading from Drupal 7 now --- source/_daily_emails/2024-01-03.md | 47 +++++++++++++++++++++++++++ source/_layouts/daily_email.html.twig | 2 ++ source/_pages/rss/daily.xml.twig | 10 +++++- 3 files changed, 58 insertions(+), 1 deletion(-) create mode 100644 source/_daily_emails/2024-01-03.md diff --git a/source/_daily_emails/2024-01-03.md b/source/_daily_emails/2024-01-03.md new file mode 100644 index 00000000..20e7c9ba --- /dev/null +++ b/source/_daily_emails/2024-01-03.md @@ -0,0 +1,47 @@ +--- +title: >- + Why you need to start upgrading from Drupal 7 now +date: 2024-01-03 +permalink: archive/2024/01/03/why-you-need-to-start-upgrading-from-drupal-7-now +snippet: | + Are you still using Drupal 7? You need to start upgrading to Drupal 10 now instead of waiting until next year. +tags: + - drupal + - drupal-upgrade + - drupal7 + - php + - phpc +--- + +{% block content %} +There's only one year before support for Drupal 7 support ends, but there are still more than 337,000 Drupal 7 websites, according to . + +Even though there's a year left, if you've got a Drupal 7 website, you need to start upgrading now! + +Unlike upgrading from Drupal 8 to 9 or 9 to 10, upgrading from Drupal 7 requires major changes to your code for it to be compatible. This will take time to do and test. + +Most websites have some or many custom modules and at least one custom theme that must be upgraded. + +Most use a large number of community-contributed modules. + +Many of these are abandoned or minimally maintained as their maintainers have focused on newer Drupal versions or a module has been marked as unsupported in favour of another. + +If they do have supported versions, it is likely that they haven't had a release for some time. If that's the case, they're essentially unsupported. + +Because of this, there may not be the same modules available with the same functionality for Drupal 10. + +Depending on the available modules, your functionality may need to change, or the old functionality will need to be written within a new custom module. + +## Here's the thing + +Depending on the complexity, it will take a number of months to complete an upgrade. + +Rather than wait until 2025, you want to do the work now whilst Drupal 7 is still supported rather than waiting and being vulnerable to security exploits if running an outdated and unsupported version. +{% endblock %} + +{% block cta %} +P.S. Are you stuck on Drupal 7? Purchase a [Drupal upgrade consulting call][call] or [upgrade roadmap][roadmap] and I'll help you on your way to Drupal 10. +{% endblock %} + +[call]: https://www.oliverdavies.uk/call +[roadmap]: https://www.oliverdavies.uk/roadmap diff --git a/source/_layouts/daily_email.html.twig b/source/_layouts/daily_email.html.twig index b5b5d89d..8ae431a3 100644 --- a/source/_layouts/daily_email.html.twig +++ b/source/_layouts/daily_email.html.twig @@ -6,6 +6,8 @@ {{ parent() }}

- Oliver

+ + {%- block cta %}{% endblock %} {% endblock %} {% block content_bottom %} diff --git a/source/_pages/rss/daily.xml.twig b/source/_pages/rss/daily.xml.twig index c71ca6ec..d478840f 100644 --- a/source/_pages/rss/daily.xml.twig +++ b/source/_pages/rss/daily.xml.twig @@ -31,13 +31,21 @@ use: {{- email.blocks.content -}} - {% if 'P.S.' not in email.blocks.content %} + {%- if email.blocks.cta %} +
+
+ {{ email.blocks.cta }} + {% endif -%} + + {% if 'P.S.' not in email.blocks.content and 'P.S.' not in email.blocks.cta %} {% set ctas = [ 'Are you still using Drupal 7 and don’t know what’s involved to upgrade to Drupal 10? Book a Drupal 7 upgrade consultation call or an upgrade roadmap.', 'Need help or want another pair of eyes on your code? Book a 1-on-1 consulting call or an online pair programming session with a 100% money-back guarantee.', 'If you\'re creating a new Drupal module, try my free Drupal module template.', ] %} +
+

P.S. {{ random(ctas) }}

{% endif %}