SlideShare ist ein Scribd-Unternehmen logo
1 von 32
www.vibranttechnologies.co.in
Drupal
Vibrant Technology &
Computers
Vashi,Navi Mumbai
1
www.vibranttechnologies.co.in 2
www.vibranttechnologies.co.in
Overview
●
What is Drupal?
●
Building blocks of Drupal
●
Drupal terminology
●
How Drupal works
3
www.vibranttechnologies.co.in
What is Drupal
●
Open source content management system
●
What is a CMS?
●
Drupal is actually much more than a CMS
– Web application framework
4
www.vibranttechnologies.co.in
PHP
●
Drupal is written in PHP
●
Web application scripting language
●
Open source language sponsored by Zend
●
PHP is actually written in C
●
Easy to learn
●
Great for rapid application development
●
One of the more popular languages for web
applications
5
www.vibranttechnologies.co.in
How PHP Works
●
PHP is run by the web server
●
PHP code embedded in web pages is compiled
and interpreted when the page is requested
●
Uncompiled code means portability and rapid
refactoring
●
PHP is truly dynamic
– Even variable names can be dynamic
●
Code can include other scripts or libraries
6
www.vibranttechnologies.co.in
Data Persistence
●
Like most web applications Drupal needs to
store data
●
Data is in a database (MySQL)
– Database means content changes happen in
the database rather than in code or on files
– Makes for easy portability and backup
– Access via code, or directly at command line
– SQL is a standard, popular, well understood
language
7
www.vibranttechnologies.co.in
Drupal Hierarchy
●
Drupal uses dynamic includes to load code
●
What happens when there are conflicts?
– Last loaded code is the one that runs
●
Drupal uses this to allow developers and users
to “extend” Drupal
8
www.vibranttechnologies.co.in
Composition of Drupal
●
Drupal includes a common set of files used to
“bootstrap” Drupal
– Set up database connections, provide
authentication, present output, etc.
●
Drupal has additional modules
– These are dynamically included depending on
configuration
– 33 modules are included in the Drupal core
9
www.vibranttechnologies.co.in
Running Drupal
●
Every Drupal request goes to index.php, even if
the URL looks like a different location
●
Index.php does bootstrapping:
– checks database for enabled modules
– loads modules that are appropriate
– checks permissions
– queries database for content
– applies theme
– renders the page
10
www.vibranttechnologies.co.in
When things go bad
●
When Drupal encounters a PHP fatal error:
– White screen of death
●
What has happened:
– PHP hit an error that forced a stop to
compilation
– PHP logs the error in the web server logs
– Potentially Drupal logs the error in the Drupal
watchdog table
– Execution dies silently without output
11
www.vibranttechnologies.co.in
Drupal filesystem structure
/includes - Drupal core PHP files
/misc - Various image and js files
/modules - Core modules
/profiles - Profile settings (own tree)
/scripts - Maintenance non-web scripts
/sites - Site definitions
/themes - Core themes
12
www.vibranttechnologies.co.in
Top Level Files
●
Several critical php files:
cron.php - web interface for scheduled tasks
index.php - everything flows through index.php
install.php - installation file (remove)
update.php - update install (for new modules)
xmlrpc.php - provide remote procedures (opt.)
●
Various other text files
13
www.vibranttechnologies.co.in
How to install Drupal
●
You need a database and a web server with
PHP already running
●
Create a database for the Drupal site
●
Download the Drupal code from Drupal.org
●
Point web browser and Drupal root and the rest
is automated
14
www.vibranttechnologies.co.in
Drupal terminology
●
Drupal uses a lot of words that have very
specific meaning:
– Module
– Theme
– Block
– Node
– Menu
15
www.vibranttechnologies.co.in
Modules
●
Modules can be installed in a number of
locations
– /modules
– /sites/all/modules
– /sites/default/modules
– /profiles/profileName/modules
●
Modules should be installed in:
– /sites/all/modules
16
www.vibranttechnologies.co.in
What is a “module”
●
Modular piece of code that extends Drupal
●
Uses the Drupal API
– Just a set of functions defined in the Drupal
core (or other modules)
●
Provide drop in functionality
●
Can be enabled/disabled (in the database)
●
Provide additional functionality without altering
the Drupal core
17
www.vibranttechnologies.co.in
Built in Modules
●
Aggregator
●
Block
●
Blog
●
Blogapi
●
Book
●
Color
●
Comment
●
Contact
●
Dblog
●
Filter
●
Forum
●
Help
●
Locale
●
menu
Node
Openid
Path
Php
Ping
Poll
Profile
Search
Statistics
Syslog
System
Taxonomy
Throttle
Tracker, translation, trigger, update, upload and user
18
www.vibranttechnologies.co.in
Look and Feel
●
Drupal takes a similar approach to display
●
Display is a separate area of Drupal
●
Many components of Drupal are defined in the
“theme”
●
Themes are comprised of HTML, CSS, PHP
and imagery
●
Themes utilize the same hierarchy as modules
●
Theme files are called “templates”
19
www.vibranttechnologies.co.in
Advantage of Themes
●
Themes follow a convention (standardization)
●
Can easily be swapped out to quickly change or
upgrade the look of a site
●
Useful because theme developers need not
necessarily be Drupal developers (or PHP
programmers)
●
Can provide powerful filters to screen output in
Drupal
20
www.vibranttechnologies.co.in
Blocks
●
Blocks are pieces of content placed in regions
of Drupal pages
●
Blocks are arbitrary pieces of content
●
Usually the stuff that appears in sidebar, header
and footer content
●
Blocks can be content, forms, special lists,
polls, or arbitrary HTML
●
Themes define regions for blocks
21
www.vibranttechnologies.co.in
Nodes
●
Drupal organizes most content around the
concept of a “node”
●
Nodes are just pieces of content
●
Only a few things aren't nodes – users, groups,
modules, and themes being the main ones
●
Other stuff, from calendar events, to RSS feed
items, to page content is a node
22
www.vibranttechnologies.co.in
How Nodes Work
●
Nodes support versioning
●
As a result node content is stored in the
node_revisions table
●
The Drupal “node” table only stores metadata
about nodes
●
Nodes can have various modules applied to
them to adjust input and output handling
23
www.vibranttechnologies.co.in
Organizing Nodes
●
There are all sorts of nodes, how do we keep them
organized?
●
Drupal supports a categorization of nodes that allows for
various node “definitions”
●
Content types allow Drupal users to define various fields
for different types of nodes
●
For instance, one node might include a URL, another a
title
●
Using “fields” specific to node types allows sorting and
display (rather than having the data stuck in a node
“body”)
24
www.vibranttechnologies.co.in
Content Types
●
“Page” and “Story” are two default content
types
●
The titles are arbitrary
●
Content types define input fields and how the
content is displayed
●
New content types can easily be created
●
Content type creation should follow careful
consideration of site architecture and purpose
25
www.vibranttechnologies.co.in
Taxonomy
●
Taxonomy is another way to organize content
●
Taxonomy are “tags” that are applied to content
●
“Vocabularies” set up as taxonomies
●
Vocabularies then contain terms
●
Taxonomies can be extended and used for
various rules in the Drupal back end
●
Taxonomy can also be used for display
purposes
26
www.vibranttechnologies.co.in
Menus
●
Drupal menu system is also fairly arbitrary
●
Display and positioning is controlled by themes
●
Three default menus:
– Navigation
– Primary links
– Secondary links
27
www.vibranttechnologies.co.in
Users and Groups
●
Drupal allows users to create accounts
●
Users are assigned to groups
●
By default two groups are defined in Drupal
– Authenticated User
– Anonymous User
28
www.vibranttechnologies.co.in
Permissions
●
Drupal utilizes a Role Based Access Control
(RBAC) system
●
Users are assigned to roles, roles receive
permissions
●
Permissions are set through the Drupal
administrative interface
●
Uid 1 user (created during install) has all
permissions
●
When in doubt: it's a permissions issue
29
www.vibranttechnologies.co.in
Default Drupal is Pretty Useless
30
www.vibranttechnologies.co.in
Got Drupal, now what?
●
Drupal out of the box doesn't look like much
●
Drupal is extremely flexible but requires a lot of
configuration
●
Changing Drupal after deployment is a pain, so
you must plan carefully
●
Drupal is a framework that doesn't make
assumptions about use cases
●
Drupal requires lots of tweaks to enable
functionality the way you want it
31
Thank You…
www.vibranttechnologies.co.in 32

Weitere ähnliche Inhalte

Was ist angesagt?

Introduction to Drupal Basics
Introduction to Drupal BasicsIntroduction to Drupal Basics
Introduction to Drupal Basics
Juha Niemi
 
Preventing Drupal Headaches: Establishing Flexible File Paths From The Start
Preventing Drupal Headaches: Establishing Flexible File Paths From The StartPreventing Drupal Headaches: Establishing Flexible File Paths From The Start
Preventing Drupal Headaches: Establishing Flexible File Paths From The Start
Acquia
 
Web browser architecture.87 to 88
Web browser architecture.87 to 88Web browser architecture.87 to 88
Web browser architecture.87 to 88
myrajendra
 
Best Practice Checklist for Building a Drupal Website
Best Practice Checklist for Building a Drupal WebsiteBest Practice Checklist for Building a Drupal Website
Best Practice Checklist for Building a Drupal Website
Acquia
 

Was ist angesagt? (20)

Beginners Guide to Drupal
Beginners Guide to DrupalBeginners Guide to Drupal
Beginners Guide to Drupal
 
Introduction to Drupal Basics
Introduction to Drupal BasicsIntroduction to Drupal Basics
Introduction to Drupal Basics
 
Preventing Drupal Headaches: Establishing Flexible File Paths From The Start
Preventing Drupal Headaches: Establishing Flexible File Paths From The StartPreventing Drupal Headaches: Establishing Flexible File Paths From The Start
Preventing Drupal Headaches: Establishing Flexible File Paths From The Start
 
Architecture of the Web browser
Architecture of the Web browserArchitecture of the Web browser
Architecture of the Web browser
 
Beginner's guide to drupal
Beginner's guide to drupalBeginner's guide to drupal
Beginner's guide to drupal
 
Drupal case study: Behind the scenes of website of University of Tartu
Drupal case study: Behind the scenes of website of University of TartuDrupal case study: Behind the scenes of website of University of Tartu
Drupal case study: Behind the scenes of website of University of Tartu
 
Drupal with CONTENTdm Digital Collections, Drupal Camp Vancouver 2012
Drupal with CONTENTdm Digital Collections, Drupal Camp Vancouver 2012Drupal with CONTENTdm Digital Collections, Drupal Camp Vancouver 2012
Drupal with CONTENTdm Digital Collections, Drupal Camp Vancouver 2012
 
72d5drupal
72d5drupal72d5drupal
72d5drupal
 
Drupal in-depth
Drupal in-depthDrupal in-depth
Drupal in-depth
 
Entities 101: Understanding Data Structures in Drupal
Entities 101: Understanding Data Structures in DrupalEntities 101: Understanding Data Structures in Drupal
Entities 101: Understanding Data Structures in Drupal
 
Drupal 7x Installation - Introduction to Drupal Concepts
Drupal 7x Installation - Introduction to Drupal ConceptsDrupal 7x Installation - Introduction to Drupal Concepts
Drupal 7x Installation - Introduction to Drupal Concepts
 
Web browser architecture.87 to 88
Web browser architecture.87 to 88Web browser architecture.87 to 88
Web browser architecture.87 to 88
 
Introduction to Drupal
Introduction to DrupalIntroduction to Drupal
Introduction to Drupal
 
DOC Presentation by DOC Contractor Alison McCauley
DOC Presentation by DOC Contractor Alison McCauleyDOC Presentation by DOC Contractor Alison McCauley
DOC Presentation by DOC Contractor Alison McCauley
 
Introduction to Moodle Development
Introduction to Moodle DevelopmentIntroduction to Moodle Development
Introduction to Moodle Development
 
Web browser architecture
Web browser architectureWeb browser architecture
Web browser architecture
 
Backing Library Operations with Open Source Applications
Backing Library Operations with Open Source ApplicationsBacking Library Operations with Open Source Applications
Backing Library Operations with Open Source Applications
 
Best Practice Checklist for Building a Drupal Website
Best Practice Checklist for Building a Drupal WebsiteBest Practice Checklist for Building a Drupal Website
Best Practice Checklist for Building a Drupal Website
 
Html, WordPress & evolving forms of publishing
Html, WordPress & evolving forms of publishingHtml, WordPress & evolving forms of publishing
Html, WordPress & evolving forms of publishing
 
Style guides in drupal development workflows
Style guides in drupal development workflowsStyle guides in drupal development workflows
Style guides in drupal development workflows
 

Ähnlich wie Drupal training-1-in-mumbai

Contributions: what they are and how to find them
Contributions: what they are and how to find themContributions: what they are and how to find them
Contributions: what they are and how to find them
Pedro Cambra
 
Introduction to basics of drupal
Introduction to basics of drupalIntroduction to basics of drupal
Introduction to basics of drupal
lrtraining05
 
Introduction To Drupal
Introduction To DrupalIntroduction To Drupal
Introduction To Drupal
Lauren Roth
 
Drupal module development
Drupal module developmentDrupal module development
Drupal module development
Rachit Gupta
 

Ähnlich wie Drupal training-1-in-mumbai (20)

Drupal Skils Lab 302Labs
Drupal Skils Lab 302Labs Drupal Skils Lab 302Labs
Drupal Skils Lab 302Labs
 
Becoming A Drupal Master Builder
Becoming A Drupal Master BuilderBecoming A Drupal Master Builder
Becoming A Drupal Master Builder
 
Introduction to drupal
Introduction to drupalIntroduction to drupal
Introduction to drupal
 
Blisstering drupal module development ppt v1.2
Blisstering drupal module development ppt v1.2Blisstering drupal module development ppt v1.2
Blisstering drupal module development ppt v1.2
 
Contributions: what they are and how to find them
Contributions: what they are and how to find themContributions: what they are and how to find them
Contributions: what they are and how to find them
 
Introduction to basics of drupal
Introduction to basics of drupalIntroduction to basics of drupal
Introduction to basics of drupal
 
Drupal_cubet seminar
Drupal_cubet seminarDrupal_cubet seminar
Drupal_cubet seminar
 
Rapid site production with Drupal
Rapid site production with DrupalRapid site production with Drupal
Rapid site production with Drupal
 
[HKDUG] #20160626 - HKOSCon 2015 - Website DIY with Drupal 8
[HKDUG] #20160626 - HKOSCon 2015 - Website DIY with Drupal 8[HKDUG] #20160626 - HKOSCon 2015 - Website DIY with Drupal 8
[HKDUG] #20160626 - HKOSCon 2015 - Website DIY with Drupal 8
 
Drupal 6x Installation
Drupal 6x Installation Drupal 6x Installation
Drupal 6x Installation
 
Implementing a Symfony Based CMS in a Publishing Company
Implementing a Symfony Based CMS in a Publishing CompanyImplementing a Symfony Based CMS in a Publishing Company
Implementing a Symfony Based CMS in a Publishing Company
 
Drupal Training Topics
Drupal Training TopicsDrupal Training Topics
Drupal Training Topics
 
Introduction To Drupal
Introduction To DrupalIntroduction To Drupal
Introduction To Drupal
 
Speedrun: Build a Website with Panels, Media, and More in 45 Minutes
Speedrun: Build a Website with Panels, Media, and More in 45 MinutesSpeedrun: Build a Website with Panels, Media, and More in 45 Minutes
Speedrun: Build a Website with Panels, Media, and More in 45 Minutes
 
Drupal - Introduction to User Management in Drupal
Drupal - Introduction to User Management in DrupalDrupal - Introduction to User Management in Drupal
Drupal - Introduction to User Management in Drupal
 
Drupal Content Management System
Drupal Content Management SystemDrupal Content Management System
Drupal Content Management System
 
MongoDB Jump Start
MongoDB Jump StartMongoDB Jump Start
MongoDB Jump Start
 
Hong Kong Drupal User Group - 2014 March 8th
Hong Kong Drupal User Group - 2014 March 8thHong Kong Drupal User Group - 2014 March 8th
Hong Kong Drupal User Group - 2014 March 8th
 
Design Summit - Technology Vision - Oleg Barenboim and Jason Frey
Design Summit - Technology Vision - Oleg Barenboim and Jason FreyDesign Summit - Technology Vision - Oleg Barenboim and Jason Frey
Design Summit - Technology Vision - Oleg Barenboim and Jason Frey
 
Drupal module development
Drupal module developmentDrupal module development
Drupal module development
 

Kürzlich hochgeladen

Kürzlich hochgeladen (20)

presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 

Drupal training-1-in-mumbai