M
M
moshomoss2015-08-06 10:49:50
CMS
moshomoss, 2015-08-06 10:49:50

Creating a site on CMS (Drupal) without a template - how?

Good day.
How can you create a site on CMS according to your own individual layout, so that there is also an adaptive layout?
Pre-typesetting in html / css, and then using black magic to turn it into a template? I can't understand it. Google didn't tell me.

Answer the question

In order to leave comments, you need to log in

5 answer(s)
E
electronics, 2015-08-06
@moshomoss

First, lay out the base page of your future site in html/js/css.
Then create a folder in Drupal with your new theme and an .info file is the bare minimum.
then add all the files of your page to the folder, and rewrite the created .html files into the corresponding .tpl.php files in accordance with the Drupal API files.
Start learning theming from this page

A
andead, 2015-08-06
@andead

Immediately turn into a template. Separately, only perverts are engaged in layout for Drupal.

A
Alex, 2015-08-06
@mr_ko

Take a basic template like Zen, create a child theme and lay out your layout in it. Well, or you can make up a theme from scratch, although the first option will be easier.
Look for manuals like this www.ibm.com/developerworks/en/library/os-new-drupa...

A
Andrey Nazarenko, 2015-08-06
@anazko

Something you are cunning about the fact that Google did not tell you something. There is tons of information about creating themes for Drupal.

N
NataliaCh, 2015-08-13
@NataliaCh

we have such a scheme: a layout designer creates his own template on pure html + css + js and gives it to me. He doesn't know anything about Drupal and doesn't want to know :) The folders in the template are standard: img, css, js .. .I copy all this to our theme folder in Drupal. At the same time, I rename the index file to page.tpl.php. And then the fun begins - I throw out the extra markup (doctype, body) and enter the regions I need in this file (do not forget about mytheme.info) and other Drupal code fragments (headers, tabs) from the default page.tpl.php .. With If necessary, I add the conditions Main / secondary page ...
Several sites have already done this way. I don’t know how correct this is, but it’s so convenient for everyone.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question