0% found this document useful (0 votes)
171 views

Drupal 101

This document provides an overview of Drupal module development including modules, themes, taxonomy, content types, menus, blocks, and views. It describes modules as PHP files that extend Drupal's core functionality including core required, core optional, and contributed modules. Themes are described as bundles of resources that provide layout and style. Taxonomy allows custom categories to classify content. Content types define additional fields for content nodes. Menus and blocks help organize and display content. Views provide tools to display content lists.

Uploaded by

Denny England
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
171 views

Drupal 101

This document provides an overview of Drupal module development including modules, themes, taxonomy, content types, menus, blocks, and views. It describes modules as PHP files that extend Drupal's core functionality including core required, core optional, and contributed modules. Themes are described as bundles of resources that provide layout and style. Taxonomy allows custom categories to classify content. Content types define additional fields for content nodes. Menus and blocks help organize and display content. Views provide tools to display content lists.

Uploaded by

Denny England
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 18

Drupal Module Development

Overview
Modules Themes Taxonomy Content / Content Types Menu Blocks Views

Modules
Files that contain PHP code and that extend
Drupal's core functionality Types:
Core (Required and Optional)
- important and provide features needed by a wide variety of systems

Contributed
- designed, developed, and provided to the Drupal community free of charge by one or more of the thousands of developers

Modules
Core (Required)

Modules
Core (Optional)

Modules
Contributed Modules

Can be downloaded in:


http://drupal.org/project/modules

Modules
To download a contributed module:
drush dl module_name (e.g. drush dl views)

To enable a contributed module:


drush en module_name (e.g. drush en views)
Note: the pwd must be in your website when downloading the modules

Theme
A theme is a bundle of resources, including PHP
templates, CSS, JavaScript, and images, that provides layout and style information for some or all of the Drupal content

http://drupal.org/project/themes

Theme Installation
download theme
sudo tar xzvf fever.tar.gz -C
/home/ictx/projects/moduledev/sites/all/themes/

Enable theme in Administer/Site

Building/themes

Taxonomy
Drupal's taxonomy is a system whereby custom,
unique categories can be defined to classify your website's content Creating a taxonomy
1. Go to Administer/Content Management/Taxonomy 2. Add vocabulary (the main category) 3. Add terms in each vocabulary
Blue Red
Color

Green

Content and Content Types


Individual content is known as node Drupal also allows for additional fields of
content to be added to nodes

Content and Content Types


2 default content types:
Basic Page Story

Creating a new content type:


Go to Administer/Content Management/Content
Type

Add content type

Menu
Menus help a visitor to a site understand (and
access) the content, features, and functions that the site provides.

Adding / Customizing a menu:


Go to Administer/Site Building/Menu

Blocks
are pieces of content that are placed in certain
defined regions of a website and typically appear on multiple pages
Example:
listing of recent news or blogs on a sites announcements

Blocks

Views
easy-to-use tool for selecting and displaying lists of
content on your website Example:
Displaying the most recent news articles posted to your website, sorted in descending order by the date of posting. Displaying a list of company locations as a table that is sortable by clicking on the titles for the location name, city, state, and country. Displaying a photo gallery. Displaying a list of blog postings that is filterable by subject. Creating an RSS feed that lists the most recent content posted on your website. Displaying just about any kind of list that you can think of, created from the content that is stored on your website, as a list, table, or RSS feed.

Views
To create a view:
1. Go to Administer/Site Building/Views

Drupal Module Development

ICT Center
We are making IT happen

Integrity

Commitment

Teamwork

You might also like