730 likes | 867 Views
Drupal and the CMS Project. Lesson Learned #1. Keep your modules updated, especially when there are security concerns in the update notes. Update Status Email.
E N D
Lesson Learned #1 • Keep your modules updated, especially when there are security concerns in the update notes
Update Status Email • From: <drupal-admin@yoursite.com>Date: Thu, Dec 2, 2010 at 3:39 PMSubject: New release(s) available for <Your Site Name>To: kolafson@uwaterloo.caThere are security updates available for one or more of your modules or themes. To ensure the security of your server, you should update immediately!See the available updates page for more information:http://www.yoursite.com/admin/reports/updates
Lesson Learned #2 • Set up a cron job or Windows scheduled task to hit cron.php on your Drupal installation at regular intervals • Usually every hour
The Drupal /sites folder • When you install Drupal, the /sites folder contains 2 directories, “all” and “default” • You can host additional sites by making new directories in the /sites folder with the name of the site and copying the settings.php file there from the default directory • For instance, /sites/krisbase.com
The Drupal /sites folder • Modules and themes you want available to every site go in the /sites/all/modules and /sites/all/themes folders • Modules you only want available to a specific site go in that site’s modules and themes folders • ex. /sites/krisbase.com/modules
Lesson Learned #3 • Don’t modify the Drupal Core files • (Don’t touch anything outside of the /sites directory)
Hooks in Drupal • foo_bar() • “foo” is the name of the module • “bar” is the name of the hook • uwblogs_block()
Lesson Learned #4 • There is a module for that! • Most common needs already have one or more modules built to address them
Drupal Inline Image Solutions • Linodef + • LinodefTaglists + • Linodef WYSIWYG + • WYSIWYG
Drupal Inline Image Solutions • Image + • Image Assist + • WYSIWYG + • TinyMCE
Drupal Inline Image Solutions • Imagefield + • Imagefield Assist + • Imagecache
Drupal Inline Image Solutions • Imagebrowser (v1) + • Image + • ImageCache + • FCKEditor
Drupal Inline Image Solutions • Imagebrowser (v2) + • WYSIWYG + • ImageCache + • Views
Drupal Inline Image Solutions • Inline
Drupal Inline Image Solutions • Insert + • WYSIWYG + • ImageField + • ImageCache
Drupal Inline Image Solutions • Media + • Styles + • WYSIWYG + • CKEditor
Drupal Inline Image Solutions • Nodereference Explorer, + • Insert + • WYSIWYG
Drupal Inline Image Solutions • Prosepoint Modules
Drupal Inline Image Solutions • WYSIWYG + • CKEditor (js) + • WYSIWYG Image Upload
Drupal Inline Image Solutions • WYSIWYG + • CKEditor (js) + • CKFinder
Lesson Learned #5 • Contributed modules go in the /sites/all/modules folder • or /sites/<sitename>/modules • not in /modules folder with the core modules that ship with Drupal
Enabling Modules with Drush • Navigate to one of your Drupal sites in the shell • drush dl <module_name> downloads the most recent production version of the module • drush en <module_name> enables it • You can also disable modules with drush, which is handy if you have a WSOD and can’t access your admin menu
Blog Requirements • Bloggers should be able to tag their posts • Should be simple using the Drupal Taxonomy module • Tags should have auto-complete functionality and bloggers should only see the suggestions that they previously entered • Blogs should share some taxonomies
Blog Requirements • Bloggers should be able to use a WYSIWYG editor so they can style their posts without HTML knowledge • Bloggers should be able to upload photos and place them where they want in their posts
Blog Requirements • Users should be allowed to comment on blog posts if the blogger allows it • Users should be able to login with CAS • The Blogger’s real name should appear beside their posts, not their username
Blog Requirements • The blog must meet accessibility standards • Blog owners should be allowed to customize their banner image • Blog owners should be able to add pages to their blogs (ex. About Us)
Blog Requirements • Blogs should be allowed to have more than one blogger • For instance a blog for a research lab may have several people posting to it • The blog owner should have the ability to moderate these posts