mw2009 exercises

12
Exercise 1: User Management 1.Adjust user settings to require administrator approval of registrations 2.Create and access rule to prevent users with a particular email type Check the access rule 3.Create a new role 4.Create a new user 5.Assign the new user to the new role 6.Set permission to create/edit a page for the new role Check permissions by logging in as new user

Upload: david-henry

Post on 07-Dec-2014

567 views

Category:

Technology


0 download

DESCRIPTION

 

TRANSCRIPT

Page 1: Mw2009 Exercises

Exercise 1: User Management1.Adjust user settings to require administrator

approval of registrations2.Create and access rule to prevent users with a

particular email type– Check the access rule

3.Create a new role4.Create a new user5.Assign the new user to the new role6.Set permission to create/edit a page for the new

role– Check permissions by logging in as new user

Page 2: Mw2009 Exercises

Exercise 2: Installing FCKeditor with the built-in file browser

1. Download FCKeditor module from drupal.org version compatible for drupal 6

2. Unzip and untar into sites/all/modules3. Download fckeditor from http://www.fckeditor.net/download4. Unzip into sites/all/modules/fckeditor/fckeditor5. Edit /fckeditor/editor/filemanager/connectors/php/config.php

– Add after line with ‘global $Config’: – require_once "../../../../../filemanager.config.php";

– Change from $Config['Enabled'] = false; to $Config['Enabled'] = true;6. Edit sites/default/settings.php

– Uncomment $cookie_domain and set it to the appropriate domain (in this case – localhost)

7. Enable the FCKeditor module in drupal administration8. Set permissions for the module under drupal user management9. Edit the default profile under admin/settings/fckeditor/edit/Default

– Under ‘Basic Setup’, check the roles that can use the editor– Under ‘File Browser type’, select ‘Built-in Filebrowser’ and set ‘allow quick

uploads’ to true

Page 3: Mw2009 Exercises

Exercise 3: Selecting and configuring themes

1. Change default theme from Garland to Chameleon and display site; then change back to Garland

2. Configure Garland (recolorable theme):– Select a different color set, save and display

– Change to custom color set

– Select some custom colors

– Upload a new logo (mhm-blue_sm.jpg) and new icon (favicon.ico), select ‘site name’, ‘site slogan’, ‘mission’

– Go to ‘Site Configuration’/’Site Information’ and add text for site name, slogan, and mission – display site

Page 4: Mw2009 Exercises

Exercise 4: Blocks

1. Enable the ‘Who’s online’ block and put it on the left sidebar

2. Reposition the ‘Who’s Online’ block so that it is on the top of the left sidebar

3. Configure the ‘Who’s Online’ Block so that it only shows on admin pages

4. Create a new block with links to google and yahoo and place it in the header region.

Page 5: Mw2009 Exercises

Exercise 5: Menus

1. Create two simple pages – this is a chance to try out the editor

2. Create a new menu

3. Add one of the pages you created to the menu

4. Place the menu in the left sidebar

5. Open the other page you created and add it to the menu

Page 6: Mw2009 Exercises

Content Types Setup

• Copy the following folders from the CD:– CCK, Date, Filefield, Imagefield, mimedetect,

and token

• Paste folders into sites/all/modules

• Go to admin/modules and enable all new modules

• Run update.php (link to it is at the top of admin/modules)

Page 7: Mw2009 Exercises

Exercise 6: Content Types

1. Set Up and enable CCK modules

2. Create an exhibit content type with opening and closing dates

3. Create 3-4 exhibits

4. Create a tour content type with tour date, and a reference to one or more exhibits

5. Create one or more tours with references to exhibits

6. (optional) Copy node.tpl.php to node-exhibit.tpl.php and modify it

Page 8: Mw2009 Exercises

Views Setup

• Copy ‘Views’ and ‘Advanced Help’ folders from the CD to sites/all/modules

• In admin/modules, enable ‘Views’ and ‘Advanced Help’ modules

• Run update.php

Page 9: Mw2009 Exercises

Exercise 7: Views

1. Create a new ‘node’ view2. Add a ‘page’ display3. Set path to ‘upcoming_exhibits’4. Set formatting to ‘table’5. Add fields: title and opening_date6. Filter by node:type = exhibit7. Filter by opening_date in the future8. (optional) show only exhibits with associated

tours

Page 10: Mw2009 Exercises

Calendar Setup

• Copy ‘calendar’ folder from the CD to sites/all/modules

• Enable calendar modules in the ‘Date’ group

• Run update.php

• Configure date and time in admin/Site Configuration/Date and Time

Page 11: Mw2009 Exercises

Exercise 8: Events and Calendar

1. Use the Calendar Wizard to create a new content type called ‘museum_event’

2. Add a field called ‘category’ as a select list –categories: ‘music’, ‘books’, and ‘family’

3. Create a few events at various dates and times and view the calendar

4. Edit the date_browser view– Change style to ‘table’– Add fields: title and date– Change argument to Content:Date

Page 12: Mw2009 Exercises

Exercise 8: Events and Calendar

5. (optional) Restyle the view by creating a new template file

• Start by inspecting ‘Theme information’ for the ‘page’ display

• Copy the code for the default style output• Save the code to a file named view-table--

date-browser--page.tpl.php in sites/all/themes/mhm

• Modify the code to show the appropriate icon for each category