1 of 31

Drupal 7 to BackdropCMS �Migrations for SiteBuilders

Fall 2023 ��Irina Zaks, irina.zaks@fibonacciwebstudio.com

2 of 31

Introduction

Building websites and apps for research and higher education

https://fibonacciwebstudio.com

Irina Zaks

Web Developer ��Feeds Module Co-Maintainer

One of organizers of StanfordWebCamp�irina.zaks@fibonacciwebstudio.com

3 of 31

My D7 site works great for me

  • I like feel and look of my theme
  • My content is easy to update
  • Content types and views work great for my goals
  • I have over 100 pages
  • I have business logic for processing submitted information

Example: https://www.cpqcc.org/

4 of 31

D7 EOL is Jan 5, 2025

When should I plan to begin

migration?

5 of 31

Step 1: Understand Your Needs

Check 1: My D7 site works well for me.

  • YES -> Continue to Check 2.

Check 2: My site has complex structured content with relationships between those� AND/OR

My site has workflows (notifications, editorial workflows, custom processes)

  • YES -> Continue to Check 3.

Check 3: Run Site Audit module and select D9/10 or Backdrop CMS.

6 of 31

Discovery toolset

  • Site Audit module with web UI for D7
    • released July 17, 2023
  • Backdrop upgrade status (backdrop_upgrade_status)
    • Checks to see if the installed modules are ready for upgrade to Backdrop CMS.
  • Upgrade Status (upgrade_status)
    • Checks to see if the installed modules are available for the next major version of Drupal.

7 of 31

Site Audit module for D7

  • Released July 17, 2023
  • Set you admin theme to �bootstrap-based
  • Select what info blocks you �want to see in settings
    • Content
    • Blocks
    • Users
    • Modules
    • Views

8 of 31

Review Site and prepare to begin migration

9 of 31

Backdrop Upgrade Status

10 of 31

Prepare task lists for migration

  1. Set Up a New Environment
  2. Add Modules if needed
  3. Add Theme if needed
  4. Content and Data Migration
  5. Configuration and Customization
  6. Testing and Debugging
  7. Post-Upgrade Tasks

11 of 31

Migration demo step-by-step

11

12 of 31

Step 1: Select your hosting

  • Local
  • “simple hosting”
  • “dev hosting”
    • Pantheon
  • Try https://backdropcms.org/try-backdrop

13 of 31

Step 1+2: Setup new site

  • Install core
  • Install contrib modules or add d2b module
    • Based on site audit
  • Install contrib theme or your custom theme (bootstrap+harris/flexible layout)
  • If needed
    • install your custom modules

14 of 31

Step 2+3: modules and themes

  • Via Project Installer - Web UI, cloud based
  • Via drush - command line, local dev setup

Other options in development

  • Composer-based installation for developers is an option
  • d2b module will detect and download modules based on your database

15 of 31

Step 4: Import / Backup and Migrate

16 of 31

Step 4 continued: Run upgrade

  • Click “Run Upgrade” button to start migration at
  • http://fibonacci-backdrop:8888/core/update.php ocore/update.php

17 of 31

Step 4: What is updated “out of the box”

You can write custom migration for your custom modules if needed

18 of 31

Step 5: Set your theme and place blocks

19 of 31

Step 5: New in Backdrop �Working with layouts

  • Out of the box layouts
  • Add new layout
    • Harris Flexible
  • Place blocks in the layout

20 of 31

“One-click” Backdrop Migrations using D2B module

Demo using CPQCC website

20

21 of 31

Full migration using D2B module

d2b module �still has some open issues, please contribute

22 of 31

23 of 31

Database analysis

24 of 31

Module and Theme upgrade module

https://github.com/backdrop-contrib/coder_upgrade

Runs conversion of D7 code to Backdrop code where possible

25 of 31

Learining Curve

25

26 of 31

Learning curve moving off D7

  • Sitebuilding is very similar to D7 (content types, taxonomies, views, etc.)
  • Configuration management
    • very well documented
  • New in Backdrop core
    • Layouts - template + path

27 of 31

Demo step by step

27

28 of 31

Dec 2 notes

  • set up brand new site from distro
  • add theme for cmqcc
  • https://cmqcc-2:8890/admin/modules/install
  • mysql -u pantheon -p rMZoitazp01008JSDHUSsG6rYPexKTKK -h 34.133.28.57 -P 16869 pantheon
  • configure file system
  • connect to database
  • download projects
  • login with new admin account
  • add admin role
  • change theme
  • set header
  • set blocks

29 of 31

30 of 31

31 of 31

Contribute to Open Source

You don't have to know code to give back!

Ways to contribute:�

https://backdropcms.org/contribute https://drupal.org/contribute

Templates provided by MidCamp.org