drupal by fire
TRANSCRIPT
February 2017
Drupal
February 2017
Drupal��
It could be worse.Don’t panic
Drupal =Web server +PHP +Database +Configuration +HTML/CSS/JS
Drupal is like many others
Drupal =Web server +PHP +Database +Configuration +HTML/CSS/JS
Drupal is like many others
Drupal is like many others
Web server (typ Apache)
Drupal / WordPress / Joomla / a lot of “LAMP” CMSs
PHP DB (typ MySQL)
OS (typ Linux)
User’s screen
HTML + CSS + JSExternal CSS + JS
BlocksUsers
Content types / nodes
“Entities”
Configuration
Drupal “core” works like…
Drupal
PHP DB (typ MySQL)
Input filtersSite settings
Output sent to end user
Permissions
Pages (“Menu” system)
1)Submit content
2)View content
Let’s do an enactment
Theme: can wrap, mold, but not hook and change!
UsersContent types / nodes
“Entities”
Configuration
Don’t forget themes!
Drupal
PHP DB (typ MySQL)
Input filtersSite settings
Output sent to end user
Permissions
Pages (“Menu” system)
Drupal is about shaping/organising content,and controlling access.
Look and feel can be done anywhere, doesn’t have to be done in Drupal.
CMS CMF
It’s all about content
It’s all subject to changePanic
It’s all subject to changePanic
Drupal: “Do it like this!”
Drupal: “Do it like this!”
Theme: “Show it like this!”
Drupal: “Do it like this!”
Theme: “Show it like this!”
Module with hooks: “Do and show like this!”
Users
Content types / nodes
“Entities”
Configuration
Hooks (Modules) add to and change this
Drupal
Input filters
Site settings
Permissions
Views
Users
Content types / nodes
“Entities”
Configuration
Example: Views
Drupal
Input filters
Site settings
Permissions
Output sent to end user
WebformUsers
Content types / nodes
“Entities”
Configuration
Example: Webform
Drupal
Input filters
Site settings
Permissions
Output sent to end user
A module can do as much or little as you need.
You can make your own module — this is very important! Everything in Drupal is like clay*
*Clay with bits of broken glass in it.
Modules open new possibilities
• ConfigurationSettings, content creation, blocks, etc.
• ModuleEnable new logic and add new configuration options
• ThemeAdd some logic, configuration options, but best to just do things that affect the “look”
Ways to do it with Drupal
Any number of ways to do something with Drupal (that’s great!)
but the “right” way to do it often depends on what else the site is already doing (that’s confusing!)
A freaky yoga master
• Core Drupal structure• Configuration• Nodes (entities)• Blocks• Theme• User permissions• And how things nest and relate
• Modules and their use of hooks
Key concepts
Some sample things to explore:• What you get “out of the box”• How to enforce access control, and circumvent• Adapting appearance of content (input filters)• Creating content functionality• Querying content to display• Adding miscellaneous bits of content
Hands on
End