Moving static content (html page ex:about us, services, homepage) to Drupal
navs - January 12, 2009 - 09:44
Hi,
In my site root directory, I have the following html static files:
http://www.mysite.com/index.html
http://www.mysite.com/books.html
http://www.mysite.com/services.html
http://www.mysite.com/policy.html
http://www.mysite.com/aboutus.html
I also have the Drupal installation under "cms" folder.
i.e. http://www.mysite.com/cms/
I want to move all the html static files into drupal, so that even this content can be edited through the admin interface without changing the styling. I have 3 columns with lots of html and CSS in my static pages, however, I want the text there to be managed by the CMS.
How can I achieve this?
Thanks
Navs

Copy & Paste. path.module to
Copy & Paste.
path.module to replace the paths.
But if you have put drupal in the subdirectory /cms/ it can't serve pages from above there. You could do redirects with .htaccess, but it's better in the long term to shift drupal up to the web root if you are serious about using it.
.dan.
if you are asking a question you think should be documented, please provide a link to the handbook where you think the answer should be found.
| http://www.coders.co.nz/ |
Copy and Paste what to
Copy and Paste what to where?
How to replace path.module? Please give detailed explanation, I'm relatively new to Drupal.
Thank you.
Navs
Please read the handbook
Please read the handbook first then. That details usage of the path.module.
.dan.
if you are asking a question you think should be documented, please provide a link to the handbook where you think the answer should be found.
| http://www.coders.co.nz/ |
hi Navs, After installing
hi Navs,
After installing Drupal, you can create a node for every page, containing the actual content. Also, define the menu-items to build the site naviation.
Next you will have to create a custom theme for your site. This controls the html structure, page lay-out and styling. If you're new to Drupal theming, I recommend using an existing theme (like the Zen starterkit or Garland) instead of trying to write one from scratch.
That's a very short summary of what you need to do. I advice you to get started, try, experiment, do some tests... When you have more specific questions, search for the answer on drupal.org or google. If the question is still not answered, you can post it here on the forum.
I added a "page" with static
I added a "page" with static content, but that is also driven by page.tpl.php, and shows up like nodes with the who submitted data etc. Also I have lots of tables in the content area of the page itself in my static pages, which cannot be loaded into the page.tpl.php.
Can I not have a index.tpl.php, a policy.tpl.php etc so that I can have the design completely driven by static text, yet be driven by CMS.
Please help
Navs
on your way
A 'page' is a type of node, so it is correct that is shows up like a node. By the way, the name 'page' can be misleading. Both pages and stories are nodes and they are quite similar. (see http://drupal.org/node/31331)
Maybe you expected another result, but in fact, you're on your way to achieving what you want. Adding the content as nodes is the first step (as I described in my previous message). Now you can start theming. Did you browse through the documentation on this site? There is a theming guide where you will find lots of tips and code snippets. This chapter is especially useful for you: Customizing full page layouts and sections.