G'day Guys!
I am having major difficulties! i have a deadline to meet and i can't seem to import my PHP and HTML site into drupal. it had been suggested by someone i know to use "Import HTML" ( http://drupal.org/project/import_html ).
here is the site live: http://www.cutmoreproperty.com/
I am hoping to directly import it into drupal without changing code (as i have next to no knowledge of drupal code, or any CMS code for that matter)
Please help out a fellow developer!
Plenty of thanks in advance!
here is the code from the homepage:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<?php include('includes/meta.php');
include('includes/styles.php');
include('includes/scripts.php');
Home | Cutmore Property
include('includes/header.php');
include('includes/nav.php');
Garry is well known throughout the Newcastle area due to both Real Estate & Sport, especially Golf.
He has lived in the Lake Macquarie area for over 40 years & has been a licensed Real Estate Agent for more than 30 years.
He therefore brings with him a wealth of knowledge & experience in the Real Estate industry & knows how to market you property & how to negotiate to obtain the best possible price for you.
By choosing Garry & Cutmore Property to market your home, you can be confident of receiving 100% commitment, dedication & effort to ensure a smooth sale process with the least amount of stress to you.
include('includes/sidebar.php');
include('includes/footer.php');
?>
Comments
=-=
why are you doing this? durpal has it's own regions and theme files. If you are trying to convert a theme for a different CMS , that's not the way to go about it.
I created a website in normal
I created a website in normal code and was forced to have to set it up for a client into a CMS for them to make their own changes and additions, this is seemingly impossible...
=-=
You can't import a site in the way you are trying to. A CMS separates the theme from the content. The content goes into the database. The theme into files. Drupal's theme engine doesn't use straight php files. It uses tpl.php files. The layout is in the tpl.php files, and the styling is in css files.
footer.php, header.php and so on aren't used in drupal. Core's theme engine won't do anything with them. drupal uses regions (header, footer, sidebar, content and so on) which are defined in a theme .info file and rendered by the theme engine in the tpl.php file through variables.
I highly suggest looking at an already existing drupal themes files. Gain an understanding of how a theme is built. content is saved to the database through forms. No different than you created this drupal.org forum thread and the comments which are attached to it.
starting here would be prudent: http://drupal.org/documentation
Thank you very much for your
Thank you very much for your help. but please bear with me. what is this "import html" then? is that a theme importer? http://drupal.org/project/import_html
From the project page Import
From the project page
It also appears it takes some set up to use.
=-=
=-=
I've never used it to be able to comment on it. However, the quote that has some bearing as does nevets quote is:
I'd not consider your site "traditional HTML" as your including .php files. That said, I don't believe the module is going to work for you. Particularly with the ease you are hoping for or this discussion wouldn't even be taking place. However, it's always worth a shot after reading the entire project page & http://drupalcode.org/project/import_html.git/blob_plain/refs/heads/6.x-...
Based on my reading (which could be entirely wrong), the module in question helps with getting HTML content & menus into Drupal and doesn't seem to directly assist with theme conversion.
Thank you Soo much! well
Thank you Soo much! well sadly i have had to cross over to Wordpress for the short time being :(
I shall keep you in my memory as a very insightful and helpful individual!
=-=
based on the code posted in your opening post, and the inclusion of those .php files, I was already under the impression wordpress was in use.
damn sorry guys, that was
damn sorry guys, that was supposed to print the source code. *sighs and grips face*
The problem here is that
The problem here is that Drupal isn't a 1-to-1 relationship to PHP or whatnot. So you cannot import an existing site into Drupal, you have to convert your existing site to Drupal. This means creating a theme that looks like your current theme, re-create any php you have into Drupal modules (or themes, if it's a theme based piece of functionality), and importing your database into Drupal.
'Importing' an existing site into Drupal is more difficult than creating one from scratch, and generally will take at least as long as building a new site from scratch, if not longer.
Another issue here is that you've taken on a job you don't have the skillset to provide. If your client wants this in a CMS, then you should outsource that part of the job to someone else. Otherwise you are going to give your client a site that may have performance and security issues, and likely won't be able to be updated by future developers. This is going to be bad for your client, which in turn will make you look bad.