
By adkz0r on
I realise many people have asked this question, but I cannot seem to find a useful, easy to follow answer. (i've been looking all day)
I have a static html/css website that I would like to convert to drupal. I am fairly new to CMS's - my knowledge is mainly with Wordpress, but I would like to join the drupal community!
Feel free to have a look at the website: www.capturedlearning.com.
All I want to do at the moment is make the text editable in each page. (index, problem solving etc..., about us, contact us etc...)
Is there a way of editing the html code for each page to allow the text to be editable in drupal?
I understand that the 'index.html' has to be changed to 'file.tpl.php'. I have done this on my local server and the website has been visible in 'localhost/drupal'.
The 'styles.css' is working from linking it with my .info file.
I hope the drupal community can help me!
Thanks,
Adam
Comments
My tip
Look at https://drupal.org/documentation and read the links ...
Good luck!
Wusel
_
Not sure what info you're working from, but there's absolutely no way to convert a static site to drupal by renaming files. As with most cms's, drupal is db based not file based.
For a small number of pages, you can simply copy and paste the text between the body tags into drupal pages. Otherwise there's the import_html module (the d7 dev version is supposed to work well) as well as feeds with feeds xpath parser and the migrate module. I even remember seeing a post about doing it with querypath.
BIG Difference!
There's really a very big difference between the way regular HTML/CSS sites work and the way CMS's function. The thing is this you must first understand the concept(s) that exist in the Drupal environment.
It's like this Drupal (like most other CMS solutions out there) functions based on database, themes, modules. Now in normal HTML/CSS sites you actually need separate/individual files(php, html, xhtml, etc) to display/present the contents of the page, in the background CSS (and perhaps a little js) acts on the the page to display what the user sees. Say for instance you want an about page, contacts page, you actually need to have two separate docs (probably with the same layout structure, you might even have to create what is called as a template in DW terms) that will display/present the content as necessary to the page. You get the idea I'm sure
In Drupal it's different. Say for instance you want to have about page, contacts page in Drupal... First of all before you even start doing anything you must have built a theme.. If you don't intend to or don't know how to you can either make use of some of the themes that come with Drupal or download from drupal.org website or any reliable source on the net or get someone (a themer) to help you build your theme...
pls see
https://drupal.org/node/2041125
all the best