Hi,
yesterday I got a work to convert a HTML website to drupal CMS.I got an HTML,its CSS and javascript .MY work is to convert this static HTML website into Drupal CMS.The website has only front page.and a small javascript animation.I did it.But now got another website which have 51 html pages a CSS no Javascript.It is a kind of e-commerce site .I want to convert it into a DrupalCMS.
Early I just did it by converting the HTML page into a .tpl.php and created a INFO file.It worked well as good CMS website(exactly how html website worked ).But now came a menu,tabs,navigations and clicking on menu,tabs or navigation showing another pages.
What should I do convert a HTML website to complete Drupal CMS.
Is there any way to do ,should I go for modules?
I heard that more international and best site which are built as normal html,css website are converted to CMS sites.

Comments

hwi2’s picture

I think the best way to go about it is first create a static Drupal template without any connections to views, blocks, etc. Do not worry about modules yet. Just create a static Drupal template and make sure it works on all browsers and appears the way you expect.

Next, for a website of 51 html pages, my best advice is to define all the common elements like your header, footer, sidebar, navigation bar etc. Once you do that, it will become clear how you can use these elements within Drupal for blocks, views, etc. Most likely, you will be using these as block regions in your .info file that you can call with a Drupal render command or you can place these elements in your Block section. All you need to do in your template's .info file is add the regions:
regions[header]
regions[footer]
regions[navigation]

Next, take out your HTML from the comment elements can build very simple Drupal blocks. Once you transfer the HTML to your blocks, edit your templates in page.tpl.php, etc and add your render statements:

print render($page['navigation']);

I won't talk about views, which are extremely powerful, but creating blocks and their regions is a great way to start.

Bruce

pazhyn’s picture

I am agree with hwi2 in process of converting HTML template to the complete Drupal website.
To make it really dynamic it is very good to use Views module.
Context and Panels will also help to make more complex logic.

If you need some help in converting HTML to powerful Drupal website you can also ask us - https://www.drupal.org/node/1819208