0

I'm new to Drupal so forgive me.

I'm trying to migrate an existing site into Drupal. The site is all static content. I'm wondering if I can point Drupal towards a file path, rather then manually creating pages within Drupal and coping the body text.

Is there an easer way to handle a migration. I've looked on google, but most links are for existing CMS systems, or assume a database is provided.

If I do need to copy the HTML into the body, how I can I manually edit the header tag for a page? e.g. I'd like to add CSS and Js references.

Thanks

  • 1
    When you are creating a page in drupal you wont be adding header parts(CSS & JS), that s the point of a CMS right ? you need to add only content and relevant CSS & JS should be handled in drupal theme(tpls or info file) or a module. – GoodSp33d Feb 28 '12 at 5:36
  • Thanks. I'll add the js references to the theme for existing content. – user5681 Feb 28 '12 at 5:52
1

If the site to be migrated has low double digit numbers of pages or has widely varying HTML and document structure among the pages the easiest solution is copy and pasting it by hand. This may be an opportunity to reorganize the site, add taxonomy terms and clear up other minor content issues.

For larger sites there are several options:

The Migrate module provides a framework and API for you to automate content migration. Using it will involve some coding and require a degree of familiarity with Drupal.

The Feeds module is generally used for importing data like RSS feeds but can be used to import site data. For example, it will import a CSV file, converting lines to Drupal nodes. I envision a solution copying pages into a structured spreadsheet with fields for Title, Author, Body, etc. and exporting that to a CSV for import via the Feeds module.

For completeness I'll mention the Import HTML module which only has Drupal 5 and 6 versions available. If you found this module suitable to import your content you could import into a barebones Drupal 6 installation and perform a site upgrade to Drupal 7.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy