Drupal

From EduTech Wiki
Jump to: navigation, search

This article or section is a stub. A stub is an entry that did not yet receive substantial attention from editors, and as such does not yet contain enough information to be considered a real article. In other words, it is a short or insufficient piece of information and requires additions.

Draft

1 Definition

Drupal is a popular portalware of the C3MS or CMS variety. It is used to build all sorts of educational websites, including teaching platforms. Similar systems discussed in this Wiki are Joomla and PostNuke.

2 Purpose and features

According to the About Drupal page (retrieved 18:36, 11 May 2007 (MEST)) “ 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. Tens of thousands of people and organizations have used Drupal to power scores of different web sites, including Community web portals, Discussion sites, Corporate web sites, Intranet applications, Personal web sites or blogs, Aficionado sites, E-commerce applications, Resource directories, Social Networking sites.”

2.1 Features

The built-in functionality, combined with dozens of freely available add-on modules, will enable features such as:

... and much more.

2.2 Software architecture

  • Drupal runs on any typical LAMP, WAMP or MAMP configuration.
  • Content in Drupal is created in individual "nodes". For nodes of type "story", users can add comments to the node (comments themselves are not considered nodes). Depending on site settings, adding new nodes and/or posting comments might or might not be allowed. Also, nodes or comments might require approval from the moderators before the node or comment is displayed. (Drupal terminology, retrieved 18:36, 11 May 2007 (MEST))

Drupal's basic set of note types include ([1]):

Blog Entry
  • Drupal blogs have typical functionality of blogware
Book Page
  • Book pages are designed to be part of a collaborative book. An example of a collaborative book is the Drupal developer documentation. All node types can be part of a book.
Comment
  • Comments actually aren't nodes, they are their own special content type. Comments are what allow people to add comments to any other node that has been created.
Forum
  • Forums are sets of nodes and their comments. These are grouped together as belonging in one forum by assigning them the forum name, which is a taxonomy term. These forum names can be grouped in forum containers, which are other terms, of which they are children in a hierarchical vocabulary which is called "forums", and configured as only applicable to nodes of the "forum" type.
Page
  • Pages are simple nodes, typically used for static content that can (but are not required to) be linked into the main navigation bar
Poll
  • A poll is where a multiple choice question is asked and users can answer and see other peoples answers to questions.
Story
  • Story pages are news engine entries. Stories are generally used for information which is only relevant for a period of time (eg. news stories) and is expected to expire off of the page.

Many other node types are included by [ contributed modules].

3 In education

3.1 Websites for educators and researchers

Drupal is very popular in education (all levels) to build community web sites within which members can post news, share resources or collaborate in other ways. Examples:

There are dozens more ...

3.2 Teaching platforms

While Drupal as platform for education-related websites doesn't come as a surprise, using Drupal instead of a learning management system is a more interesting topic. We believe that drupal is good platform to implement project-oriented learning designs. Typically, a teacher (and not the institution) will run the platform. It's something that Daniel K. Schneider advocated in his C3MS project-based learning model (implemented a few years ago with PostNuke).

Examples:

  • Archive of Welcome to English 420S (Distance Learning), Purdue University
  • Maxetom Integrates educational on-line multimedia applications. “ Maxetom propose aux enfants des coloriages en ligne qui leur feront découvrir les couleurs en espagnol ou en anglais.”

Typically, a teacher (or an organization) will design a custom environment to support various kinds of learning activities. One way to think about this, was presented in 2004 in the TECFA SEED Catalog. There is also a TECFA SEED Catalog version in this wiki and that will be updated a bit in some nearer future - Daniel K. Schneider 11:10, 1 June 2007 (MEST).

3.3 Links and resource management

Example:

4 Installation

4.1 Prerequisites

  • Drupal should install without problems on a LAMP or WAMP system. So install Apache/MySQL/Php first. In case you just want to play, I recommend WOS, a free WAMP distribution that runs on a memory stick and that includes a Drupal (optional module) !

Drupal is open-source software distributed under the GPL ("General Public License") and is maintained and developed by a community of thousands of users and developers.

4.2 Standard Drupal

Drupal is ready to go from the moment you download it. It even has an easy-to-use web installer. However, a typical educator probably would like to download and install third-party modules.


4.3 DrupalEd

A group of people (including Bill Fitzgerald) released an educational package (not tested yet).

“ DrupalEd is a powerful open source content management system with the power to support the e-learning needs of large educational institutions. It is also easy enough to install and use for individual teachers/professors to implement in their own classes (for teachers who would like to abandon BlackBoard, sans IT Department backing)” ([2]).

4.4 Other extensions of interest to education

5 Getting started with drupal 7.27

5.1 Before the instalation

5.1.1 Moving Drupal to its intended location

If you work locally using Wamp system extract the zip file and copy-past it in the “www.directory”. If you use a web server (e.g Tecfa server) follow the same procedure and copy-paste the extracted file into the directory that will host your future site.

5.1.2 Create a database and a user using phpMyAdmin

Local machine:

If you don’t know how to create a user and a database using phpMyAdmin see the example wordpress/create a database

Web server:

According to the drupals’ community documentation “Most web hosting accounts provide a Web-based control panel to help you administer your site. These tools include easy-to-use features for creating a new database, and for creating a "user" with rights to the database. To create a database using a browser-based control panel consult the documentation or ask your web host service provider. Either you use a local machine or a web server it is important to take note of the username, password, database name and hostname during this step, as you will need them when running the install script. [3]

5.1.3 Running the installation script:

Local machine:

Insert the URL (the directory where you placed your Drupal files. If you are using a system like WAMP the URL is http://localhost/drupal. If for example you renamed the extracted folder to drupalTest the URL is http://localhost/drupalTest.

Web server:

If you have installed drupal in a web host insert the domain name. if you are using the TECFA server insert the URL http://www.tecfaetu.unige.ch/. If you have installed Drupal in a subfolder that is called projects point your browser to the folder, for example http://www.tecfaetu.unige.ch/projects.

5.2 Installation process

Note: Be very careful when clicking save and continue. There is no back button.

  • Step 1

Select the Standard profile as shown in the picture.The Minimal profile is targeted toward more experienced Drupal site creators.

Drupal1.png

Click Save and continue

  • Step 2

The default language is English, if you want to change it, click Learn how to install Drupal in other languages link.

Drupal2.png

Click Save and continue

  • Step 3

Select the database type, enter the database name and the database username that you created at the Create a database and user using phpMyAdmin step. According to the Drupal community, the Advanced options allow you to change the database host-name in case that you are using a web server, the port number if you are using a non-standard port number and the table prefix if you are installing multiple instances of Drupal tables that share the same database. [4]

DatabaseConfig.png

Click save and continue

  • Step 4

The following progress bare will appear; wait for the installer to finish the installations.

Drupal6.png

  • Step 5

Provide the information for the first user account (Administrator). Note that all the following information can be changed later through the configuration panel.

  1. Site information: Enter the name of your site and the site e-mail address
  2. Site maintenance account: Enter the username and the password of the first user (Administrator).
  3. Server settings: You can change the Default country and the Default time zone. Also you can uncheck the boxes in the Update notifications field if you don’t want to receive notifications for required updates.

Drupal3.png

Click Save and continue

  • Step 6

Your new site is ready. Click visit your new site

Drupal4.png

5.3 A glance to the administrators front-page

Drupal7.png

  1. Name of the site: in our case Play
  2. Main menu: the main navigation bar
  3. Management Menu: the administrator's tools for managing the site
  4. User Menu: log out (be sure that you remember the administrator's username and password before being tempted to click it) and a link to the users account
  5. sub menu: side navigation bar
  6. Search form: accessing information by adding key-words.
  7. Shortcuts: the administrator can easily create and find content. These options can be changed (edit shortcuts)

5.4 A closer look

5.4.1 Dashboard

It is a list of items that helps you track your important information. Activating a block on your dashboard doesn't mean that it will be published in your site.

The default activated blocks are:

Drupal8.png

  • Recent content
  • Search form
  • Who’s online?
5.4.1.1 Adding, removing, or rearranging items on the dashboard

You can add new block views by clicking the Customize Dashboard button. You will see a set of dashboard blocks that you can drag and drop in and out of your dashboard. Once dragged into the dashboard, each block can also be rearranged to the desired position in the page. (The settings are saved automatically.) Press on the add other blocks button in order to enable new blocks for your dashboard.

Drupal9.png

5.4.1.2 Disabling the dashboard
  1. Click on the Modules button or insert the URL Modules http://example.com/admin/modules).
  2. In the Core section, disable the Dashboard module.
  3. Click Save Configuration.

5.4.2 Content

The administrator can access the created content and the comments.

5.4.2.1 Content

Drupal10.png

  • Add content

For the moment you can either add articles or/and basic pages in your site.

  • Article
  • Give a title to your article
  • Enter tags to describe your content
  • Write your article in the body field. Notice that the default Text format is Filtered HTML. You can change it to Plain Text and forget the HTML tags or to Full HTML in order to be able to use all HTML tags.
  • Upload an image from your machine.
  • Menu settings:
  • Allows you to create a menu link in the main navigation bar.Check the Provide a menu link box and leave the default inputs (Parent item--><Main menu>)
  • Set weight: The weight field determines the order that the links are displayed. For example the weight of the link Home of the main navigation bar is 0. If you give a weight -1 to your article it will be displayed before the link Home.
  • Display the content in the front page as a teaser (sort form of the article):Change the field (Parent item --> --Home).
  • Revision information
  • URL settings: You can provide an alternative URL of the page that you’ve created.
  • Comment settings: By default the comments are activated. If you want to disable them you can select the order Closed.
  • Authoring information: Provide information for the author of the content and the date that the content was created.
  • Publishing options: by default the page that you’ve created is published and promoted to the front-page as a teaser (sort form of the article). If you don’t wish to publish the content or/and promote it to the front-page, uncheck the relevant boxes. Publishing options give you the possibility to make your content sticky. This means that in a list of different contents the current content will be promoted at the top of the list and will also be highlighted (displayed within a shady background).

Note that if you wish to display your content as a teaser in the front-page the default setting works just fine. DO NOT change neither the Parent item field nor the publishing options.

  • Basic page

For the basic page content the principles are the same as for the article content.

Differences:

The image field is missing, this means that you can only include an image by selecting the Full HTML text format and using the <img> HTML tag. By default the comments are closed. So if you want to activate the comments you have to select the order open.

  • SHOW ONLY ITEMS WHERE

You can filter the display of the created content by choosing its status and/or its type. For the moment your created content could be articles and basic pages. Status: the status options are published, not published, promoted, not promoted, sticky, not sticky. Note that you have defined the status of your content the moment that you’ve created it in the publishing options.

  • Type

Choose either article or basic page, the default content that you are allowed to create for the moment. Press filter in order to display the content that meets the selected criteria.

  • UPDATE OPTIONS

Allows you to publish or unpublish, promote or demote, make sticky or not sticky and delete the selected content/s from the list of content under the update options. Press update in order to save your changes.

5.4.2.2 Comments

This tab allows you to manage the created comments.

Drupal11.png

  • Published comments
  • Update options: Unpublish or delete created comments. By unpublishing a comment it will no longer appear on your site but it can be accessed through the unapproved comments tab.
  • Unapproved comments: Publish the unapproved comments in order to reactivate them or delete them permanently.


5.4.3 Structure

5.4.3.1 Blocks

Blocks are boxes of content that can be displayed in the different regions of your site. For example the search box and the navigation box that you can see in the front-page are blocks enabled by default. For the moment you can disable and enable existing blocks or create your own content blocks. The advantage of blocks is that you can choose in which page and region these blocks will be displayed.

  • Activate an existing block:

Scroll down the page and find the disabled blocks Select the region in which your block will be displayed. Once you have selected a region the block will be automatically added to the regions list. Scroll up to find your block and click configure. Note that if you don’t do the necessary configurations your changes will not be saved even if you click the save button at the bottom of the page.

Drupal12.png

  • In the user menu block page:
  1. Block title: Enter the title of the block
  2. Region settings: It defines where the block will be published.
  3. Bartik (default theme): Select the region in which this block will be displayed, if not; the block will not appear on the page.
  4. Seven (administration theme): You can add the block in your dashboard and select its position.
  5. Visibility settings: This basically means who can actually see the block and where.
  6. Pages: the default value is display in all pages. Here you can specify in which pages this block will be visible by entering their path.
  7. Content types: You can specify in which pages this block will be visible according to the type of the content. For the moment this can be article/s and/or basic page/s.
  8. Roles: The block will be visible to the selected users. If you don’t select any role the block will be visible to all users.
  9. Users: By default users cannot decide if a block will be visible or not, here you can set permissions in order to decide on their own whether the selected block will be visible or not.
5.4.3.2 Content types

In Drupal, a Content Type is a pre-defined collection of data types (Fields) that are related by an informational context. In this sense, "context" means "parts that should be considered as a correlated whole." [5] For the moment the default content types are articles and basic pages.

Drupal13.png


Here you can add content types, edit them, manage fields and display as well as delete them. The changes affect all the future published content in your site that is part of the same type. For example if you deactivate the comments for the article content type (Article --> edit --> comment settings --> Default comment setting for new content: Closed) this means that in the future articles, users will no longer be able to leave their comments.

  • The identity of content types

Name: one or more words that reflects the structure of the content e.g. Article Description: Examples of use e.g. Use articles for time-sensitive content like news, press releases or blog posts.

Note that the identity of the content type helps authors to easily select the content type that serves their purposes.


  • The structure of content types
  • Content types are a combination of different data types e.g. title, text, image, etc selected by the creator of the content type.
  • These that actually define the structure of content types are the fields and widgets.

Putting ourselves in the shoes of the creator of the Article content type, we can observe how he gave authors the ability to publish content that resembles to a real article (title, long text, picture, comments). In order to do that he selected the right fields (Node module element, Long text and summary, Term reference, Image) and he edited the field settings.

How?

In order to understand the procedure let’s add our own field in the Article content type.


  1. Select structure-->Content types-->Article-->manage fields-->Add new field
  2. Give a label e.g. File
  3. Select a Field type e.g. File
  4. Click Save
  5. Check Enable Display field
  6. Click Save field settings
  7. The default values work just fine for now. Just make sure that you have a .txt file (the default value for Allow file extensions field) stored in your machine in order to upload it afterwards and see the result.
  8. Click save settings

Create a new Article in order to see what are the changes. (Add content-->Article)


Where do fields and widgets come from?

Modules

Existing fields: Boolean, Decimal, File, Float, Image, Integer, List (float), List (integer), List (text), Long text, Long text and summary, term, reference, Text.


5.4.4 People

  • List tab
  • Block list: A list of your users that can be filtered according to roles, permissions and status. Probably for now you can see only you.
  • SHOW ONLY USERS WHERE defines which user will be displayed in the block list according to their roles.
  • The default roles are:
  • Administrator: it’s you when you are logged in.
  • Authenticated User: are the users that you create from the Add user panel.
  • Anonymous User: everyone that has access to the site without log in.
  • Permissions: Defines what the users can do and see on your site.
  • Status: active or blocked.
  • Update options:
  • Block or unblock the selected users
  • cancel their accounts
  • add roles and delete roles.
  • Permission tab

Here is where you define the privileges of your roles. By default you can see that the role administrator is the most privileged one. If you wish to give more privileges (permissions) to other roles just check the box that associates the permission with the role.

Tips

Drupal is not as complicated as it seems!!!

  • Make sure that you have explored the core modules before installing new ones.
  • Read carefully the modules’ documentation and make sure that you have already installed their dependencies (if any).
  • Don’t get too greedy with the additional modules; stay focused on those that serve your objectives.
  • Some modules may not work as expected! don’t panic! it is highly probable that Drupal team has already implemented a similar module or a solution to your problem.

6 Links

6.1 Drupal

Official
Reviews and analysis on the Drupal website
Drupal Themes
Other

7 References

  • Albion, Peter (2005) 'Designing for an online doctoral studies community using an open source platform.' In: Crawford, C. and Carlsen, R. and Gibson, I. and McFerrin, K. and Price, J. and Weber, R. and Willis, D. A., (ed.). Proceedings of the 16th International Conference of the Society for Information Technology in Teacher Education, Association for the Advancement of Computing in Education, pp. 2138-2143. Abstract/HTML/PDF
  • Schneider Daniel; Mourad Chakroun, Pierre Dillenbourg, Catherine Frété, Fabien Girardin, Stéphane Morand, Olivier Morel and Paraskevi Synteta, (2004) TECFA Seed Catalog, unpublished, PDF