i have some external html file to import to drupal. how to do that make that static html file be under the control of drupal that drupal can edit or delte or add some advertisement on it.

i have an idea, that post an page make the type php, use include way to include that html file to it. but that has one problem to resolved. how to make the website visiters can not access the html file directly?

and if you know the better way please tell me . i am a newbie of drupal. thank you.

Comments

mdlueck’s picture

We are currently consulting on a project porting a MAMMOTH static HTML site over to Drupal. Basically copy/paste from the existing site into a node, story page, or otherwise. Special care needs to be taken to make sure that all of the HTML tags validate correctly... I suggest taking as few tags along as possible.

I do not know anyway around such a process. All other ideas seem bazaar and insane.

flourishing’s picture

thank you.
but this is not what i need.

my stiuation is , i have a system it will report the system's status by html file, i just want to upload it to the web folder, then use some way to make drupal can control it. don't need copy source code or something. just the drupal can read the html file it self.

Steven_NC’s picture

If you are converting from another CMS, there are some scripts/modules for some of them. Search on the name of the previous CMS. If its static html you'll be doing it manually.

[added] Was slow on the trigger.
What do you mean when you want to control the html?

anpavisi’s picture

I have a similar question. I have a bunch of static .html content pages I would like to incorporate into a new drupal site. Does anyone have suggestions for scripts that can import and index large numbers of static .html pages into a new drupal site?

Thanks

sepeck’s picture

In the modules download is a section for import/export. There are several modules that may be of use depending on your setup.
import/export

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide