Drupal Concepts
-
Upload
robert-castelo -
Category
Documents
-
view
226 -
download
0
Transcript of Drupal Concepts
![Page 1: Drupal Concepts](https://reader030.fdocuments.net/reader030/viewer/2022021122/577cdf501a28ab9e78b0f15f/html5/thumbnails/1.jpg)
7/29/2019 Drupal Concepts
http://slidepdf.com/reader/full/drupal-concepts 1/49
Concepts
![Page 2: Drupal Concepts](https://reader030.fdocuments.net/reader030/viewer/2022021122/577cdf501a28ab9e78b0f15f/html5/thumbnails/2.jpg)
7/29/2019 Drupal Concepts
http://slidepdf.com/reader/full/drupal-concepts 2/49
Node
![Page 3: Drupal Concepts](https://reader030.fdocuments.net/reader030/viewer/2022021122/577cdf501a28ab9e78b0f15f/html5/thumbnails/3.jpg)
7/29/2019 Drupal Concepts
http://slidepdf.com/reader/full/drupal-concepts 3/49
Nodes can be any content type
Product
News Event Blog
Profile Analysis
Movie
Report
Director
........
![Page 4: Drupal Concepts](https://reader030.fdocuments.net/reader030/viewer/2022021122/577cdf501a28ab9e78b0f15f/html5/thumbnails/4.jpg)
7/29/2019 Drupal Concepts
http://slidepdf.com/reader/full/drupal-concepts 4/49
The Node
![Page 5: Drupal Concepts](https://reader030.fdocuments.net/reader030/viewer/2022021122/577cdf501a28ab9e78b0f15f/html5/thumbnails/5.jpg)
7/29/2019 Drupal Concepts
http://slidepdf.com/reader/full/drupal-concepts 5/49
Node Fields
![Page 6: Drupal Concepts](https://reader030.fdocuments.net/reader030/viewer/2022021122/577cdf501a28ab9e78b0f15f/html5/thumbnails/6.jpg)
7/29/2019 Drupal Concepts
http://slidepdf.com/reader/full/drupal-concepts 6/49
A Node
A Node
A Node
![Page 7: Drupal Concepts](https://reader030.fdocuments.net/reader030/viewer/2022021122/577cdf501a28ab9e78b0f15f/html5/thumbnails/7.jpg)
7/29/2019 Drupal Concepts
http://slidepdf.com/reader/full/drupal-concepts 7/49
Many Nodes
![Page 8: Drupal Concepts](https://reader030.fdocuments.net/reader030/viewer/2022021122/577cdf501a28ab9e78b0f15f/html5/thumbnails/8.jpg)
7/29/2019 Drupal Concepts
http://slidepdf.com/reader/full/drupal-concepts 8/49
Block
![Page 9: Drupal Concepts](https://reader030.fdocuments.net/reader030/viewer/2022021122/577cdf501a28ab9e78b0f15f/html5/thumbnails/9.jpg)
7/29/2019 Drupal Concepts
http://slidepdf.com/reader/full/drupal-concepts 9/49
Blocks
![Page 10: Drupal Concepts](https://reader030.fdocuments.net/reader030/viewer/2022021122/577cdf501a28ab9e78b0f15f/html5/thumbnails/10.jpg)
7/29/2019 Drupal Concepts
http://slidepdf.com/reader/full/drupal-concepts 10/49
Can be positioned
through configuration
(or Contexts or Panels)
![Page 11: Drupal Concepts](https://reader030.fdocuments.net/reader030/viewer/2022021122/577cdf501a28ab9e78b0f15f/html5/thumbnails/11.jpg)
7/29/2019 Drupal Concepts
http://slidepdf.com/reader/full/drupal-concepts 11/49
Header
Footer
Left Right
Content
Regions
![Page 12: Drupal Concepts](https://reader030.fdocuments.net/reader030/viewer/2022021122/577cdf501a28ab9e78b0f15f/html5/thumbnails/12.jpg)
7/29/2019 Drupal Concepts
http://slidepdf.com/reader/full/drupal-concepts 12/49
Lots of regions
out of the box
![Page 13: Drupal Concepts](https://reader030.fdocuments.net/reader030/viewer/2022021122/577cdf501a28ab9e78b0f15f/html5/thumbnails/13.jpg)
7/29/2019 Drupal Concepts
http://slidepdf.com/reader/full/drupal-concepts 13/49
????
Custom Regions
Can Be Added
![Page 14: Drupal Concepts](https://reader030.fdocuments.net/reader030/viewer/2022021122/577cdf501a28ab9e78b0f15f/html5/thumbnails/14.jpg)
7/29/2019 Drupal Concepts
http://slidepdf.com/reader/full/drupal-concepts 14/49
Theme
![Page 15: Drupal Concepts](https://reader030.fdocuments.net/reader030/viewer/2022021122/577cdf501a28ab9e78b0f15f/html5/thumbnails/15.jpg)
7/29/2019 Drupal Concepts
http://slidepdf.com/reader/full/drupal-concepts 15/49
Layout provided bythemes
![Page 16: Drupal Concepts](https://reader030.fdocuments.net/reader030/viewer/2022021122/577cdf501a28ab9e78b0f15f/html5/thumbnails/16.jpg)
7/29/2019 Drupal Concepts
http://slidepdf.com/reader/full/drupal-concepts 16/49
Use Drupal Themes Included
Download Themes Fromdrupal.org
Or Build Your
Own Theme
![Page 17: Drupal Concepts](https://reader030.fdocuments.net/reader030/viewer/2022021122/577cdf501a28ab9e78b0f15f/html5/thumbnails/17.jpg)
7/29/2019 Drupal Concepts
http://slidepdf.com/reader/full/drupal-concepts 17/49
Design can also be
provided by Panels
![Page 18: Drupal Concepts](https://reader030.fdocuments.net/reader030/viewer/2022021122/577cdf501a28ab9e78b0f15f/html5/thumbnails/18.jpg)
7/29/2019 Drupal Concepts
http://slidepdf.com/reader/full/drupal-concepts 18/49
Taxonomy
![Page 19: Drupal Concepts](https://reader030.fdocuments.net/reader030/viewer/2022021122/577cdf501a28ab9e78b0f15f/html5/thumbnails/19.jpg)
7/29/2019 Drupal Concepts
http://slidepdf.com/reader/full/drupal-concepts 19/49
by Habitat
Water Land, Air
Land, Air Land
![Page 20: Drupal Concepts](https://reader030.fdocuments.net/reader030/viewer/2022021122/577cdf501a28ab9e78b0f15f/html5/thumbnails/20.jpg)
7/29/2019 Drupal Concepts
http://slidepdf.com/reader/full/drupal-concepts 20/49
Fixed Vocabulary
Vocabulary:
•Habitat
Terms:
•Air
•Land
• Water
Terms are pre-defined
by site maintainers
![Page 21: Drupal Concepts](https://reader030.fdocuments.net/reader030/viewer/2022021122/577cdf501a28ab9e78b0f15f/html5/thumbnails/21.jpg)
7/29/2019 Drupal Concepts
http://slidepdf.com/reader/full/drupal-concepts 21/49
Fixed VocabularyVocabulary:•Habitat
Terms:•Air
•Land
-Tropical
-Polar
• Water
-Shallows
-Deep
Terms can have multiple levels
![Page 22: Drupal Concepts](https://reader030.fdocuments.net/reader030/viewer/2022021122/577cdf501a28ab9e78b0f15f/html5/thumbnails/22.jpg)
7/29/2019 Drupal Concepts
http://slidepdf.com/reader/full/drupal-concepts 22/49
![Page 23: Drupal Concepts](https://reader030.fdocuments.net/reader030/viewer/2022021122/577cdf501a28ab9e78b0f15f/html5/thumbnails/23.jpg)
7/29/2019 Drupal Concepts
http://slidepdf.com/reader/full/drupal-concepts 23/49
![Page 24: Drupal Concepts](https://reader030.fdocuments.net/reader030/viewer/2022021122/577cdf501a28ab9e78b0f15f/html5/thumbnails/24.jpg)
7/29/2019 Drupal Concepts
http://slidepdf.com/reader/full/drupal-concepts 24/49
User Entered Terms• Those that belong to the Emperor
• Embalmed ones
• Those that are trained
• Suckling pigs
• Mermaids
• Fabulous ones
• Stray dogs
• Those included in the present classification
• Those that tremble as if they were mad
• Innumerable ones
• Those drawn with a very fine camelhair brush
• Others
• Those that have just broken a flower vase
• Those that from a long way off look like flies
From Borges fictional Chinese Encyclopaedia "Celestial Emporium of Benevolent Knowledge"
![Page 25: Drupal Concepts](https://reader030.fdocuments.net/reader030/viewer/2022021122/577cdf501a28ab9e78b0f15f/html5/thumbnails/25.jpg)
7/29/2019 Drupal Concepts
http://slidepdf.com/reader/full/drupal-concepts 25/49
Free Tagging
or FolksonomUsers add tags (terms) to content as it
is being created or edited.
Autocomplete is used to suggest
existing terms, to try to create
common classification.
![Page 26: Drupal Concepts](https://reader030.fdocuments.net/reader030/viewer/2022021122/577cdf501a28ab9e78b0f15f/html5/thumbnails/26.jpg)
7/29/2019 Drupal Concepts
http://slidepdf.com/reader/full/drupal-concepts 26/49
![Page 27: Drupal Concepts](https://reader030.fdocuments.net/reader030/viewer/2022021122/577cdf501a28ab9e78b0f15f/html5/thumbnails/27.jpg)
7/29/2019 Drupal Concepts
http://slidepdf.com/reader/full/drupal-concepts 27/49
Click on ‘Polar’ to see all
content tagged with that term.
![Page 28: Drupal Concepts](https://reader030.fdocuments.net/reader030/viewer/2022021122/577cdf501a28ab9e78b0f15f/html5/thumbnails/28.jpg)
7/29/2019 Drupal Concepts
http://slidepdf.com/reader/full/drupal-concepts 28/49
Click on ‘Polar’ to see all
content tagged with that term.
Term title & description
![Page 29: Drupal Concepts](https://reader030.fdocuments.net/reader030/viewer/2022021122/577cdf501a28ab9e78b0f15f/html5/thumbnails/29.jpg)
7/29/2019 Drupal Concepts
http://slidepdf.com/reader/full/drupal-concepts 29/49
Menu
![Page 30: Drupal Concepts](https://reader030.fdocuments.net/reader030/viewer/2022021122/577cdf501a28ab9e78b0f15f/html5/thumbnails/30.jpg)
7/29/2019 Drupal Concepts
http://slidepdf.com/reader/full/drupal-concepts 30/49
Primary Menu
![Page 31: Drupal Concepts](https://reader030.fdocuments.net/reader030/viewer/2022021122/577cdf501a28ab9e78b0f15f/html5/thumbnails/31.jpg)
7/29/2019 Drupal Concepts
http://slidepdf.com/reader/full/drupal-concepts 31/49
Links added throughconfiguration
![Page 32: Drupal Concepts](https://reader030.fdocuments.net/reader030/viewer/2022021122/577cdf501a28ab9e78b0f15f/html5/thumbnails/32.jpg)
7/29/2019 Drupal Concepts
http://slidepdf.com/reader/full/drupal-concepts 32/49
![Page 33: Drupal Concepts](https://reader030.fdocuments.net/reader030/viewer/2022021122/577cdf501a28ab9e78b0f15f/html5/thumbnails/33.jpg)
7/29/2019 Drupal Concepts
http://slidepdf.com/reader/full/drupal-concepts 33/49
Primary Menu
![Page 34: Drupal Concepts](https://reader030.fdocuments.net/reader030/viewer/2022021122/577cdf501a28ab9e78b0f15f/html5/thumbnails/34.jpg)
7/29/2019 Drupal Concepts
http://slidepdf.com/reader/full/drupal-concepts 34/49
Questions
![Page 35: Drupal Concepts](https://reader030.fdocuments.net/reader030/viewer/2022021122/577cdf501a28ab9e78b0f15f/html5/thumbnails/35.jpg)
7/29/2019 Drupal Concepts
http://slidepdf.com/reader/full/drupal-concepts 35/49
Content Structure
![Page 36: Drupal Concepts](https://reader030.fdocuments.net/reader030/viewer/2022021122/577cdf501a28ab9e78b0f15f/html5/thumbnails/36.jpg)
7/29/2019 Drupal Concepts
http://slidepdf.com/reader/full/drupal-concepts 36/49
Content Structure
• Entity
• Bundle
• Field
•Widget
• Formatter
![Page 37: Drupal Concepts](https://reader030.fdocuments.net/reader030/viewer/2022021122/577cdf501a28ab9e78b0f15f/html5/thumbnails/37.jpg)
7/29/2019 Drupal Concepts
http://slidepdf.com/reader/full/drupal-concepts 37/49
Entity
• An abstraction of a data type
• e.g. node, user, comment
![Page 38: Drupal Concepts](https://reader030.fdocuments.net/reader030/viewer/2022021122/577cdf501a28ab9e78b0f15f/html5/thumbnails/38.jpg)
7/29/2019 Drupal Concepts
http://slidepdf.com/reader/full/drupal-concepts 38/49
drupal.org/project/entity
![Page 39: Drupal Concepts](https://reader030.fdocuments.net/reader030/viewer/2022021122/577cdf501a28ab9e78b0f15f/html5/thumbnails/39.jpg)
7/29/2019 Drupal Concepts
http://slidepdf.com/reader/full/drupal-concepts 39/49
Bundle
• A group of fields
• An instance of an Entity
•e.g. Story (node) content type
![Page 40: Drupal Concepts](https://reader030.fdocuments.net/reader030/viewer/2022021122/577cdf501a28ab9e78b0f15f/html5/thumbnails/40.jpg)
7/29/2019 Drupal Concepts
http://slidepdf.com/reader/full/drupal-concepts 40/49
![Page 41: Drupal Concepts](https://reader030.fdocuments.net/reader030/viewer/2022021122/577cdf501a28ab9e78b0f15f/html5/thumbnails/41.jpg)
7/29/2019 Drupal Concepts
http://slidepdf.com/reader/full/drupal-concepts 41/49
Field
• Available for various types of data
• e.g. numeric, text, boolean, image, file
![Page 42: Drupal Concepts](https://reader030.fdocuments.net/reader030/viewer/2022021122/577cdf501a28ab9e78b0f15f/html5/thumbnails/42.jpg)
7/29/2019 Drupal Concepts
http://slidepdf.com/reader/full/drupal-concepts 42/49
![Page 43: Drupal Concepts](https://reader030.fdocuments.net/reader030/viewer/2022021122/577cdf501a28ab9e78b0f15f/html5/thumbnails/43.jpg)
7/29/2019 Drupal Concepts
http://slidepdf.com/reader/full/drupal-concepts 43/49
Widget
• Controls how field is presented fordata input
• e.g. text field, select list, radio buttons
![Page 44: Drupal Concepts](https://reader030.fdocuments.net/reader030/viewer/2022021122/577cdf501a28ab9e78b0f15f/html5/thumbnails/44.jpg)
7/29/2019 Drupal Concepts
http://slidepdf.com/reader/full/drupal-concepts 44/49
![Page 45: Drupal Concepts](https://reader030.fdocuments.net/reader030/viewer/2022021122/577cdf501a28ab9e78b0f15f/html5/thumbnails/45.jpg)
7/29/2019 Drupal Concepts
http://slidepdf.com/reader/full/drupal-concepts 45/49
Formatter
• A formatter controls how a field ispresented for data display
• e.g. plain text, trimmed, image size, as link
![Page 46: Drupal Concepts](https://reader030.fdocuments.net/reader030/viewer/2022021122/577cdf501a28ab9e78b0f15f/html5/thumbnails/46.jpg)
7/29/2019 Drupal Concepts
http://slidepdf.com/reader/full/drupal-concepts 46/49
![Page 47: Drupal Concepts](https://reader030.fdocuments.net/reader030/viewer/2022021122/577cdf501a28ab9e78b0f15f/html5/thumbnails/47.jpg)
7/29/2019 Drupal Concepts
http://slidepdf.com/reader/full/drupal-concepts 47/49
Token
• Place holder tokens filled in by Drupal
• e.g. [node:author]
![Page 48: Drupal Concepts](https://reader030.fdocuments.net/reader030/viewer/2022021122/577cdf501a28ab9e78b0f15f/html5/thumbnails/48.jpg)
7/29/2019 Drupal Concepts
http://slidepdf.com/reader/full/drupal-concepts 48/49
drupal.org/project/token
![Page 49: Drupal Concepts](https://reader030.fdocuments.net/reader030/viewer/2022021122/577cdf501a28ab9e78b0f15f/html5/thumbnails/49.jpg)
7/29/2019 Drupal Concepts
http://slidepdf.com/reader/full/drupal-concepts 49/49
Image Credits
• by Puliarf
• by EDD07
• by Strange Ones
• Christina Spicuzza