Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By Corda on
I want to convert my HTML pages into Drupal content, one by one. I don't need to migrate CSS, themes, or the layout. Just the way my existing pages appear as a result of their HTML. I read in another thread that using FCKEditor or Web Developer with Firefox makes this process easier but noone explains how. I'm missing the connection there. I mean it isn't possible to just insert HTML into a drupal page or story?
Comments
easy
If you want to cut & paste HTML from existing source, you may want to create an input format/filter that does nothing (not even line breaks)
in admin/filters/add
create a format called 'unfiltered HTML' with no filters on it.
Then when creating a new page, choose that from your 'input formats' before pasting code into the body of a node.
OR, if you have lots of existing content you are trying to migrate, have a look at import html - it's a bit complex, but designed for bulk imports.
.dan.
How to troubleshoot Drupal | http://www.coders.co.nz/
.dan. is the New Zealand Drupal Developer working on Government Web Standards
Just copy everything
Just copy everything between, but not including, the tags
<body>
and</body>
and paste into the body of a Drupal node.Make sure you are using a input filter that allows the html tags you are using.
oh ok I had already created
oh ok I had already created an 'unfiltered HTML' input option as suggested in another thread but forgot to actually select it when adding content.
I'm currently creating my new site in a subfolder, while keeping my existing site live. Will it be difficult to move the drupal site to the root directory or will my links be all messed up?