Drupal for Education and E-Learning(Second Edition)
上QQ阅读APP看书,第一时间看更新

Sample users and testing

Now, we have installed and configured the CKEditor, created two content types for the instructor blog, and assigned permissions to those content types. The next steps involve creating a test user for the instructor role and creating some sample content.

Adding new users

Click on the People link, or navigate to admin/people. Click on the Add user link, which brings you to admin/people/create.

When adding a new user, you will need to provide Username, E-mail address, and Password. You will also have the opportunity to add the user to a role. When adding users, you can also opt to send them an introductory e-mail; the content of this e-mail can be edited by clicking Configuration | Account settings link, or by navigating to admin/config/people/accounts.

Click on the Create new account button to submit the form and create the new user account.

Note

Drupal does not put restrictions on usernames or passwords by default, although it will estimate the strength of your password. Users can use their real name or a screen name. There are contributed modules, such as Password Policy (http://drupal.org/project/password_policy) and Real Name (http://drupal.org/project/realname) that can enforce your chosen policies.

Section summary

In the first section of this chapter, we have set up the basic functionality that will power the teacher blog. We have:

  • Installed and configured CKEditor and the text editor
  • Installed the modules required to create the teacher blog
  • Created two content types for the teacher blog
  • Assigned permissions to allow users in the teacher role to use the assignment and blog content types
  • Added a test user to the teacher role

To finish creating the Teacher blog, we need to complete two remaining steps:

  1. Add some sample blog posts and assignments.
  2. Create two views: one to display all posts from users in the teacher role and a second view to display assignments.