Drupal
description
Transcript of Drupal
![Page 1: Drupal](https://reader035.fdocuments.net/reader035/viewer/2022062802/5681447b550346895db11292/html5/thumbnails/1.jpg)
Drupal
Content Management System
Mallikarjuna Pinjala CIS 764, Nov. 2008
- 1-
![Page 2: Drupal](https://reader035.fdocuments.net/reader035/viewer/2022062802/5681447b550346895db11292/html5/thumbnails/2.jpg)
CMS?
• Application to manage public content.
• Identify users and roles.
• Manage multiple versions of content
• Capture content
• Constituent Interaction
![Page 3: Drupal](https://reader035.fdocuments.net/reader035/viewer/2022062802/5681447b550346895db11292/html5/thumbnails/3.jpg)
History
• Creators: Dries Buytaert and Hans Snijder
• Small news site, builtin web board, drop.org.
• In 2001, software behind drop.org released as “Drupal” (droo-puhl).
![Page 4: Drupal](https://reader035.fdocuments.net/reader035/viewer/2022062802/5681447b550346895db11292/html5/thumbnails/4.jpg)
Features
• Open Source
• Friendly URLs
• Personalization
• Modules
• Search
• Solid CMF
• Database Independent
![Page 5: Drupal](https://reader035.fdocuments.net/reader035/viewer/2022062802/5681447b550346895db11292/html5/thumbnails/5.jpg)
Setup
Download Drupal
Rename the /drupal/sites/default folder
Edit htaccess file.
Create Database MySQL
mysqladmin -u username -p create databasename
createuser --pwprompt --encrypted --no-adduser --no-createdb username
createdb --encoding=UNICODE --owner=username databasename
Run automated Install Script
![Page 6: Drupal](https://reader035.fdocuments.net/reader035/viewer/2022062802/5681447b550346895db11292/html5/thumbnails/6.jpg)
Installation
![Page 7: Drupal](https://reader035.fdocuments.net/reader035/viewer/2022062802/5681447b550346895db11292/html5/thumbnails/7.jpg)
![Page 8: Drupal](https://reader035.fdocuments.net/reader035/viewer/2022062802/5681447b550346895db11292/html5/thumbnails/8.jpg)
Setup Structure
• sites/default/settings.php• sites/example.com/settings.php• sites/example.com.site3/settings.php• sites/sub.example.com/settings.php• sites/sub.example.com.site3/settings.php• sites/www.sub.example.com.site3/settings.php• sites/www.sub.example.com/settings.php
• sites/sub.example.com/settings.php• sites/sub.example.com/themes/custom_theme• sites/sub.example.com/modules/custom_module
![Page 9: Drupal](https://reader035.fdocuments.net/reader035/viewer/2022062802/5681447b550346895db11292/html5/thumbnails/9.jpg)
Basic CM
• Page and Story Content Types
• Content Addition
• Edit/ Disable primary links
• Menus
• Alias• Set up category
![Page 10: Drupal](https://reader035.fdocuments.net/reader035/viewer/2022062802/5681447b550346895db11292/html5/thumbnails/10.jpg)
![Page 11: Drupal](https://reader035.fdocuments.net/reader035/viewer/2022062802/5681447b550346895db11292/html5/thumbnails/11.jpg)
![Page 12: Drupal](https://reader035.fdocuments.net/reader035/viewer/2022062802/5681447b550346895db11292/html5/thumbnails/12.jpg)
![Page 13: Drupal](https://reader035.fdocuments.net/reader035/viewer/2022062802/5681447b550346895db11292/html5/thumbnails/13.jpg)
Administration
• Site Configuration (Dist authentication, Error reporting, Site Maintenance).
• Site Building (Blocks, Menus, Modules etc)
• User Management (roles, Access Rules..)
• Content Management
![Page 14: Drupal](https://reader035.fdocuments.net/reader035/viewer/2022062802/5681447b550346895db11292/html5/thumbnails/14.jpg)
Complex DB mounted on Web
![Page 15: Drupal](https://reader035.fdocuments.net/reader035/viewer/2022062802/5681447b550346895db11292/html5/thumbnails/15.jpg)
Components of Drupal
Module system
Based on the concept of “Hooks”
Foo_bar (), Foo module name, bar hook name
![Page 16: Drupal](https://reader035.fdocuments.net/reader035/viewer/2022062802/5681447b550346895db11292/html5/thumbnails/16.jpg)
Components (Contd.)
• Database Abstraction Layer• Inherits PHP’s PDO• Performs queries by db_query () or
db_query_range ()
![Page 17: Drupal](https://reader035.fdocuments.net/reader035/viewer/2022062802/5681447b550346895db11292/html5/thumbnails/17.jpg)
• Menu System• Follows hierarchy defined by paths.
• Page request is registered as a menu item with a callback.
• Searches for the most complete match with a callback it can find
![Page 18: Drupal](https://reader035.fdocuments.net/reader035/viewer/2022062802/5681447b550346895db11292/html5/thumbnails/18.jpg)
• Form Generation• Processing and display of HTML forms• drupal_get_form ()
• drupal_execute () to submit forms programmatically.
![Page 19: Drupal](https://reader035.fdocuments.net/reader035/viewer/2022062802/5681447b550346895db11292/html5/thumbnails/19.jpg)
• File System• File handling functions: file_create_url (), file_copy (),
file_create_filename () etc.
• Search Interface• hook_view (), hook_nodeapi ()• hook_search (), create a search tab for module.• hook_update_index (), uses indexing scheme
![Page 20: Drupal](https://reader035.fdocuments.net/reader035/viewer/2022062802/5681447b550346895db11292/html5/thumbnails/20.jpg)
• Example Modules• Restrict Node Access
• nd_access_ex_frm_alter (), nd_access_ex_nodeapi (), nd_access_ex_perm ()..Implementation of hook_* ().
![Page 21: Drupal](https://reader035.fdocuments.net/reader035/viewer/2022062802/5681447b550346895db11292/html5/thumbnails/21.jpg)
![Page 22: Drupal](https://reader035.fdocuments.net/reader035/viewer/2022062802/5681447b550346895db11292/html5/thumbnails/22.jpg)
Takeaways
• Open-Source Software– Buggy– Frequent updates– Support Community
• Simplicity– Minimize reliance on modules– Steer away from excessive and focus on the essential
• Tracking System– Document versioning & modules (sources & versions)– Helps tie-in with overall web strate
![Page 23: Drupal](https://reader035.fdocuments.net/reader035/viewer/2022062802/5681447b550346895db11292/html5/thumbnails/23.jpg)
![Page 24: Drupal](https://reader035.fdocuments.net/reader035/viewer/2022062802/5681447b550346895db11292/html5/thumbnails/24.jpg)
References
• Dries Buytaert, “Drupal” ( Open Source Content Management System), www.drupal.org, visited 11/04/2008
• “Drupal” ( Content Management System) , Wikipedia, 9 pp., http://en.wikipedia.org/wiki/Drupal, visited 11/04/2008
![Page 25: Drupal](https://reader035.fdocuments.net/reader035/viewer/2022062802/5681447b550346895db11292/html5/thumbnails/25.jpg)
Questions?
![Page 26: Drupal](https://reader035.fdocuments.net/reader035/viewer/2022062802/5681447b550346895db11292/html5/thumbnails/26.jpg)
Questions?
* What is the relation between Rails and Drupal (as relates to 764)?
What similarities? What differences? What is language of web components, of business logic?
What ORM?
What DB’s can be used?
![Page 27: Drupal](https://reader035.fdocuments.net/reader035/viewer/2022062802/5681447b550346895db11292/html5/thumbnails/27.jpg)
Other CMS … many
Jahia