Go to the Stanford University web site
or
Log In
(To add something to the Commons.)

Drupal

Drupal is a free software package that allows an individual or a community of users to easily publish, manage and organize a wide variety of content on a website. Many people in the Stanford community have created web site using Drupal and IT Services' MySQL service. In addition to the documentation maintained on this site, you can learn about Drupal at Stanford by subscribing to the drupallers mailing list. [Subscribe to Drupallers].There is also a "sandbox" instance of Drupal called Drupal in Practice where you can experiment with new modules and familiarize yourself with Drupal administration. The site is maintained by Zach Chandler.

Drupal Site Checklist

  1. If installing on Leland, follow Drupal install instructions to make the necessary changes to .htaccess files and properly fill-out the mysql database form.
  2. Install the poormanscron module or choose an alternative crontab solution
  3. Set your site's default time zone and date/time format
  4. Enable your site maintenance page if you would like to have the site off-line while you work on it

Upgrade to 5.x

Following the upgrade instructions that come in the tarball I had no problems upgrading.

A few remarks:
Installing all the extra modules under sites/all/modules makes life a lot easier.

For webauth:
In addition to moving the module, of course, you need to copy the drupal/webauth and drupal/webauth_logs directory into your new install.

https:
Don't forget to copy the .htaccess under drupal as well as drupal/files
In order to preserve Marcos's hack for clean URLs with virtual host proxy I needed to copy include/bootstrap.inc to the new install.

Bug Fix in CCK Node Reference for multiple values

I am using the node reference type to connect courses with faculty. Adding more than one faculty to a course and displaying this in a view produced a huge warning abut an "error in the SQL syntax."

I used the fix described here: http://drupal.org/node/152270

Drupal and Webauth

Updated on 2012-05-03

Integrating Drupal with WebAuth

The WebAuth module for Drupal (WMD) for Drupal 6 and for Drupal 7 is an official module supported by IT Services and originally written by Ken Sharp that implements external logins using Stanford's WebAuth. It automatically creates new user accounts and assigns them Drupal roles (as of version 3.x) based on mappings between Workgroups and Roles as specified by the administrator. Logins are handled by WebAuth and not Drupal, which means one less username and password for people to remember.

Remove cgi-bin from your path

From Ken Sharp:

Want to hide the cgi-bin portion of a Drupal installation on Leland? Here’s what I did:

1. I have a clean Drupal installation called drupal-test in /afs/ir/dept/stucomp/cgi-bin/drupal-test
2. In settings.php in the drupal sites\default directory, uncomment the $base_url variable and change it to:
$base_url = 'http://www.stanford.edu/dept/stucomp/drupal'; //NO trailing slash!
3. In /afs/ir/dept/stucomp/WWW, create an .htaccess file with the following:
RewriteEngine on
RewriteBase /dept/stucomp/

Clean URLs without ?q=

Instructions originally from James Jacobs
Reviewed and Updated on 2012-05-03

From http://drupal.org/getting-started/clean-urls:

WYSIWYG Editors

Lack of WYSIWYG editor and imaging capabilities seem to be the two biggest weaknesses with Drupal.

Interesting discussion here "Does any WYSIWYG exist at all for Drupal?" That addresses the problem that even when using FCK or TinyMCE in Drupal, it does not apply your current theme's stylesheet to the resulting page.

See article on Drupal.org:
"How to make TinyMCE be WYSIWYG - almost"
http://drupal.org/node/160657