Code Monkey home page Code Monkey logo

icon-migrate's Introduction

Icon Migrate

Introduction

Icon Migrate is a collection of PHP scripts that help developers to migrate any site to Drupal 8 and 9.

Using Icon Migrate

Taking a static archive

In order to migrate a site, Icon Migrate works with other site archiving tools such as Site Sucker and wget. An example of using wget is provided below:

wget --mirror --page-requisites --adjust-extension --no-parent --convert-links --directory-prefix=local_dest_dir https://www.aph.gov.au/About_Parliament/Parliamentary_Departments/Department_of_Parliamentary_Services/Publications/Annual_Report_2016-17

Those site archiving tools will crawl and make a full static HTML archive of a website with all referenced local files and images. Icon Migrate can then pick up the archived HTML pages, along with the files and images and migrate them into Drupal.

Preparing the Drupal site

Basic configuration of the Drupal site will be required. An example composer.json file is provided, which includes the modules those scripts depends on to function properly. In a nutshell, the target Drupal site will need the REST API (create node) enabled.

Running the Icon Migrate scripts

There are two PHP scripts to run: icon_migrate_discover.php and icon_migrate_post.php.

These scripts will require the settings files configured properly before doing their jobs.

After the correct settings are provided, run php -f icon_migrate_discover.php to convert the static HTML archive of the source site into JSON data files that can then be posted to Drupal via Drupal's REST API.

After the JSON data files are prepared, run php -dsafe_mode=Off icon_migrate_post.php to post the JSON files to Drupal to create the migrated pages

icon-migrate's People

Contributors

invisigoth avatar

Watchers

Andrew Fletcher avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.