Help transfer content and data into or out of the site, by migration, backup, or exposing data to external systems.

Custom Migration

This module is for calling a PHP script (for you to define) to migrate data.

Custom Migrationjust creates a page with a button to call the script.

_You write the script._

Great starting point, avoids need to write any code other than the migration script.

Credit to Darrell Duane for creating the initial module.

***********************************************************
Features
***********************************************************

- Creates a single button, which calls a function you define.

***********************************************************
Requirements and dependencies
***********************************************************

- None

***********************************************************
Permissions
***********************************************************

Unless you are user #1, you will not be able to access the page.

Permissions:

- administer migration -- Needed for access to page with button.

***********************************************************
Instructions
***********************************************************

- Modify the last function in custom_migration.module (custom_migration_action()).

- Install and enable the module.

- Clear the cache (a menu item is created).

- Run your custom function by navigating to:

/admin/migration

Static HTML Viewer

The idea of the Static HTML Viewer module, is to bind a static HTML web site directly into Drupal.

This is not about importing a static HTML website into Drupal (this is already well documented). Instead, we are directly binding a website into Drupal.

This is very useful if you want to expose a set of HTML pages into your website without having to create a node for each page.

For instance, if you are a developer and generate documentation for your code (using Doxygen in PHP or Javadoc in Java), you will end up with a lot of HTML pages. You might want to expose those pages inside your Drupal website, in order to benefit from all the benefits of a Drupal install (themes, etc...) This module will help you do this: the content of every HTML page is copied in the content of the theme.

The closest module to "Static HTML Viewer" is the Import HTML module.
While the Import HTML module creates a new Drupal node for each HTML page it imports, the "Static HTML Viewer" does not create any nodes. Instead, it loads HTML pages directly from the disk and embeds them in the Drupal theme.

Block Instances

Block Instances

Blocks instances module allows users to render a block in different places when some conditions are met.

A block instance is a set of conditions that determine which block renders in a specified region. Each block instance can render a single block.

Current Features:

  • Display a block multiple times in different regions - and with different weights.
  • Export the block instances using features.
  • Compatible with boxes.
  • Provide two levels of access to administrate the module allowing to:
    • Restrict the regions where a block can be placed.
    • Restrict who can edit the block instance.
    • Restrict which blocks can be rendered in the site.
    • Restrict which regions are available for blocks.
    • Pass arguments to views blocks.

Although Block Instances works in a similar way to Context, both modules are incompatible to display blocks. This means, you can use Context, but not to render blocks..

Dependencies:

  • Chaos Tools ctools. 6.x branch

Related projects

Example Web Scraper

Web Scraper

This example demonstrates how to build a Drupal-native web scraper. It imports events from a single month of Stanford University's calendar by navigating to the page for each day and creating a node for each event on the day's list. Each event is then queued for scraping its details.

All functionality is provided by Feeds, Feeds XPath HTML Parser, Feeds Crawler, Feeds SelfNode Processor, and Feeds Tamper. This module only includes an example configuration packaged using Features. Developers and site-builders who are interested in web scraping may find it a helpful starting point.

Biblio Advanced Import

Biblio Import Pitfall Workarounds

Biblio Advanced Import is an add-on for the Bibliography Module.

Instead of creating duplicate biblio records during imports, existing ones can be updated or the import can be skipped depending on a configurable duplicate detection strategy.

You can use an out of the box strategy or configure your own.

How to detect duplicates?

Use one or combine multiple of these strategies:

  • Hashing over configurable biblio fields.
  • ISBN
  • ISSN
  • DOI
  • PubMed ID
  • ...

How to deal with duplicates?

  • Create duplicate record.
  • Skip import of a record.
  • Update the latest existing duplicate record.
  • Update the oldest existing duplicate record.
  • Update all existing duplicate records.
  • Create a new revision of the latest existing duplicate record.
  • Create a new revision of the oldest existing duplicate record.
  • Create a new revisions of all existing duplicate records.

How to merge duplicates?

  • Override the existing record.
  • Override the existing record but keep non empty values that do not exist in the record to be imported.
  • Only add new values that are empty in the existing record.

Transport

A transport layer for Drupal-to-Drupal data, which aims to provide a common base on which to build services-based applications between Drupal sites.

In (reasonably) plain English:

  • with Services, you can make XMLRPC calls to a remote Drupal site and get back data, provided you first connect, log in, and pass keys and hashes and tokens and so on in ever call.
  • with Clients, you can just make a remote method call of, say, 'node.load' with a parameter of X and get back data, much like calling a normal function; all the complex stuff with Services is done for you.
  • with Transport, you need only say 'get me node X from Client Y', and you not only get the node, but the user who authored it, its attached files, taxonomy terms, and comments (well the last two are TODO, but that's a minor point). Transport does the work of calling the right methods, figuring out dependencies, saving everything it retrieves, and maintaining a record of correspondences between local and remote object IDs. Transport can work with multiple remote sites, and is agnostic of Drupal version: Transport on a Drupal 6 site can retrieve nodes from either a Drupal 5 or 6 site.

Pages

Subscribe with RSS Subscribe to RSS - Import and export