Академический Документы
Профессиональный Документы
Культура Документы
http://www.apachefriends.org/en/xampp.html
http://acquia.com/downloads
http://drupal.org
Some Tools of the Trade
● Web browser
http://getfirefox.com
http://getfirebug.com
http://getwebdeveloper.com
Some Tools of the Trade
● Drupal's Devel module
http://drupal.org/project/devel
http://netbeans.org
Drupal Concepts
● Theme
● Module
● Content types
● Node
● Region
● Block
● Primary Links, Secondary Links, Navigation
● Theme Engine
Drupal Concepts
Drupal Theme
● “a collection of interrelated files that are
responsible for the look and feel of
the website” - (Shreves, 2008)
● Custom and contributed themes should
reside in the 'sites/all/themes' directory
Drupal Concepts
Drupal Module
● “files that contain PHP code and reside in your
sites/all/modules subdirectory of your Drupal
Installation” - (VanDyk and Westgate, 2007)
● “A module is software (code) that extends
Drupal features and/or functionality.”
http://drupal.org/node/19828
Drupal Concepts
Content Types
● “A single web site could contain many types of
content, such as informational pages, news
items, polls, blog posts”
http://drupal.org/node/21947
● A content type in Drupal (example: 'page')
defines default settings for a specific type of
web content
Drupal Concepts
Nodes
● “A node in Drupal is the generic term for a piece
of content on your web site”
http://drupal.org/node/19828
● “each item of content is called a node, and each
node belongs to a single content type”
http://drupal.org/node/21947
● Comments and blocks are not nodes
Drupal Concepts
Regions
“Pages on your Drupal site are laid out in
regions, which can include the header, footer,
sidebars, and main content section; your theme
may define additional regions”
http://drupal.org/node/19828
Drupal Concepts
Blocks
● “Blocks are discrete chunks of information
that are displayed in the regions of
your site's pages”
http://drupal.org/node/19828
● Blocks can contain menus, output from
modules or other information
● Blocks are administered in the 'admin area'
administer → site building → blocks
Types of Drupal menus
Primary and Secondary Links
● “Primary and Secondary links are built by site
administrators” http://drupal.org/node/19828
and are displayed in regions by a theme
Navigation
● “Navigation is the catch-all menu that contains
your administration menus, as well as links
supplied by modules on your site.”
http://drupal.org/node/19828
Concepts
Theme Engine
● “A theme engine is a set of scripts that
interprets code and makes theming a site
easier. This takes the dynamically generated
content and outputs it to HTML”
http://drupal.org/node/937#t
● PHPTemplate is Drupal's default theme engine
Other theme engines are PHPTal and Smarty
http://drupal.org/project/Theme%20engines
Further info on Drupal Concepts
● Drupal Terminology
http://drupal.org/node/937
http://drupal.org/node/302232
Theme Options
● Use one of the existing themes that come with
your Drupal installation
● Install a contributed theme http://drupal.org
● Adapt an instance of an existing theme
● Build your own theme using a starter theme
like Zen or Fusion
http://drupal.org/project/zen
http://drupal.org/project/fusion
● Create your own custom theme
Where to Save Your Themes
● Save custom and contributed themes in the
following Drupal directory:
sites/all/themes/
● Optional
● style.css
● block.tpl.php, node.tpl.php
● template.php
Theme Elements
Optional
● template.php
● logo.png
● screenshot.png
● Images folder
● http://drupal.org
● http://acquia.com/community/resources
● www.lullabot.com/podcast