Académique Documents
Professionnel Documents
Culture Documents
Matt Weaver Web Librarian Westlake Porter Public Library facebook.com/mattweaver @mattrweaver
What is Drupal?
Content management system(CMS) / content management framework (CMF) Open source File structure written in PHP Supports several databases:
MySQL, postgresql the most common
What is Drupal?
Drupal is like a Lego kit. Skilled developers have already made the building blocks - in the form of contributed
Comments attached to nodes Blogs every user gets one Blocks containers for content Users
Roles
Modules
PHP-written functions that are executed to do something:
Create a node Display an image Organize taxonomy terms Set access restrictions et cetera
Themes
The layout of the site CSS Template files: php
Custom templates for node types, front page, user login
Custom:
Content Construction Kit (CCK)
Obstacles
Learning curve can be steep, which can increase development time/costs Nearly 11,000 modules and 1,200 themes
Sometimes poorly maintained/abandoned Only as good as the developer who wrote them
Quality of support
Obstacles
Getting more complex:
Lines between data structures getting blurred/overridden/emended
Essential Modules
Content Construction Kit (CCK)
Custom node type: eresource
taxonomy Node Title Default node body
Link fields
Essential Modules
Views module: framework for displaying database data from queries User interface, not SQL commands Simple to complex
A table view of a custom content type
A Panel Dissected
Custom content just in this panel. Tabbed block (quicktabs module) that displays views Another Quicktabs block Node content (page)
Drupal at WPPL
Main site and three subsites
Drupal at WPPL
Drupal at WPPL
Drupal at WPPL
Multisite
One instance of Drupal core If one module is used in all sites (CCK, Views, Panels) install it once Install distinct modules for subsite in that site directory only Easier to maintain, lightweight Lots of ways to do multisite Some reconfiguring of Apache, other subsystems.
Node content
Text editors offer some control, depending on the user.
Other uses
Opportunities to create cost savings by building functionality provided by vendors
Room reservation Course reserves libguides
Drupal Skills
Get your hands dirty Foundation of XHTML & CSS will serve you very well Database stuff
Basic SQL commands Understanding the Drupal database Maintenance: module updates/upgrades Errors: Can destroy your site
Drupal Skills
PHP
At least a little Use/hack existing scripts/snippets Develop your own theme Theming Views Errors: Can break your site.
<?php $path_pieces = explode('/', drupal_get_path_alias($_GET ['q']));?><p style="text-align: center;"><a href="/movielists/?q=taxonom y/term/<?php print $path_pieces[2]; ?>/moviecatexport" onMouseOver="ImageOnly1.s rc='/sites/www.westlakelibrary. org.movielists/modules/movie cat/images/new_download_h over.png'"
A real drupal snippet, trapped in the wild.
Development guidelines
Never do development on a production server
Production server:
Development guidelines
This setup is better
Production server Staging Server: Stores backup of production site: Minor tweaks
Plenty of tutorials for installing xampp Drupal.org A good tutorial on installing Drupal 6 on xampp:
http://bit.ly/ds3Wp
To learn more
To learn more
Get Help
Drupal4Lib Listserv : essential
Friendly, knowledgeable, helpful participants Responsive
Get Help
Drupal.com/community
Module/theme issues Forums Groups.drupal.org can be local, regional; or can be topic-specific