Drupal Templating / Theming Resources or Advice?

I'm interested in creating a custom theme for the Drupal site I'm working on. I am new to Drupal, however I have decent experience working with the basic concepts that are apparently needed to create a theme (CSS, PHP, HTML).

So my question is: where to start? Is there a canonical guide to creating Drupal themes? Resources I Should Know About (Except Theming Guide )? Gotchas encountered by others, or simply common words of wisdom from those who are more experienced?

+3
source share
6 answers

- . , , , . / /// , , ( .info , , ), , .

( ?), :

  • ,
  • , .

, (, zen), , . ...

Drupal:)

+3

DEVEL http://drupal.org/project/devel

, .

, DRUAPL THEMER INFORMATION, , .

- node, , node.

, node -story.tpl.php

    <?php 
     print "<textarea cols=100 rows=30>". print_r($node,true) ."</textarea>";
# or krumo($node); # if you have krumo installed
     print "<h1>". $node->title ."</h1>";
    print "<p>" . formdat_date($node->created,"custom", "d/m/Y) ."</p>" ;



    ?>
+5

, . .

: , :

"" - , . , , .

+4

, Zen, . Drupal 6, Drupal Book Front End Drupal, .

5 ( Joomla), Drupal, Drupal Drupal Book. : .

, Drupal, Drupal, , , , . Drupal, , Drupal Themers , . - , - , Drupal. , xhtml, css PHP Drupal. , .

+2

zen as a starter theme and use the module that allows you to hover over your page and offers page template names for the elements you want to use for the theme. forgot the name of the module, but it really started to work for me. it is not so easy. good luck

0
source

Source: https://habr.com/ru/post/1714417/


All Articles