BYU Drupal Workshop 6 April 2012
Setup Database & Server Requirements found at drupal.org/requirements Drupal 7 requires Apache or Microsoft IIS PHP 5.2.5 MySQL 5.0.15 Microsoft SQL and Oracle, SQLite also supporter
Load Files Unpack the Installation Profile to your web root Htdocs/ or www/ Drupal s File Structure Root contains all Drupal core files Sites this contains your site specific files /all contains your themes and modules /default/files uploaded files from the site (news images, slider photos, etc.)
Install Visit your site and install Drupal site.byu.edu/install.php Try the new sandbox! drupal-sandbox.byu.edu
Load Theme Download and Unpack theme into theme folder siteroot/sites/all/themes Only needed if you installed Drupal base Appearance Tab, show themes, click on settings Enter your College and Department name
Configure Theme Appearance Tab Parent Organization (e.g. College of ) Parent Organization URL (http://.byu.edu) Structure Tab Blocks Content is displayed in Blocks. You can organize your blocks into various display regions called regions. You can configure individual blocks to display on certain pages or to certain user roles. (e.g. Only on Front page and to authenticated users.)
Nodes Nodes are content entries. Try it out! Create an About us page Create 3 front page articles You can see all your nodes in Find Content.
Content Type Content Types define the types of nodes Try it out! Set up a new one call it Meeting Structure > Add Content Type Additional Fields: Image, Date Create 3 meeting nodes. To change how it renders on the front page: Structure > Content Type > manage display > teaser
Menus Our theme has two menus areas: Primary & Secondary Structure > Menu > Add Menu > Call it Seconday Links Add Menu > Settings > Secondary Links Try It out! Create a menu link for the about us page. About Us > Edit > Menu > Main Menu Create Custom Link and Mega Menu Add a picture for one of those posts Menus > Main Menu > List Links > Link Name > Edit > Megamenu Note: This is done on the 2 nd level links, NOT the top level. Note: Make sure you have expanded checked on the parent link
Slider The Slider comes with the Installation Profile or installed as a module. Try It Out! Go to the homepage and save the image Add Content > Feature Default Images size is 940 x 393px
Views Views - Queries for specific fields of your content types and sorts them according to your needs. Displays in Blocks and Pages Try it Out! Create a Upcoming Meeting Block and Page Arrange the block to display only on the front page Add a link to the page from the Menu
User Roles and Permissions Roles allows you to assign users to specific roles Content Editor Writer Admin Sub-Admin Try it out! Create a Content Editor with permissions to only create and edit content. They should not be able to edit system settings. People > Permissions > Roles
CAS Central Authentication System (CAS) is what BYU uses to verify users and roles. You can also pull in attributes using the CAS Attribute Tokens Module Note: You need to authenticate using https Try It out! Pull in a new user Give them the role of a content editor. Settings Cas.byu.edu Port: 443 Login Form > Make CAS Login default on login forms User Accounts > Automatically Create Drupal Accounts Check to see if Logged in
Updating Modules and Core Automatically Modules Modules > Update > Download these updates Run Database updates (automatically or run update.php) Update Core Download from drupal.org and replace all files EXCEPT your sites folder. Run update.php Good Practice: USE A TEST SERVER FIRST! Modules are developed by community. Might not always work or be compatible. This is the downside of Drupal. Popular modules are usually good. Be sure to take down site first by going to config > maintenance mode.
Contact Web Community USE THIS FIRST! Others might have the same questions. Forums Contact Us Contact Specific Users Ephraim Sng Ephraim.sng@gmail.com Mitch Hess byuengineer@byu.edu
Have Fun! Thank you all for attending