Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Drupal 5 Views Recipes

You're reading from   Drupal 5 Views Recipes 94 recipes to develop custom content displays for your Drupal web site

Arrow left icon
Product type Paperback
Published in May 2009
Publisher Packt
ISBN-13 9781847196965
Length 412 pages
Edition 1st Edition
Languages
Tools
Concepts
Arrow right icon
Toc

Table of Contents (22) Chapters Close

Drupal 5 Views Recipes
Credits
About the Author
Acknowledgement
About the Reviewer
Preface
1. Introduction to Views FREE CHAPTER 2. Working with Default Views 3. CCK and Views 4. Dates and Calendars 5. Views and Tools for Administrators 6. Views Galore 7. Theming and Layout 8. Navigating the Online Drupal Community Default Views in Drupal 5 Modules
Formatters
Style Plugins
Views Hooks for Coders
Modules Included in Recipe Ingredients
Additional Resources and Modules Mentioned in Recipes
Selected Noteworthy Patches to Views
Index

Recipe 7: Creating an "Admin" Role and setting Access Permissions


Note

Ingredients

Admin Role module: http://drupal.org/project/adminrole

When you first installed Drupal, the first user you created was, naturally, user #1, also known as the "super-administrator". If others users need administrative access to the site (to administer Views, for instance), it is a good practice to create a distinct admin role. The Admin Role module will save you the trouble of having to manually set permissions each time you install a new module. All new permissions will automatically be enabled for the admin role.

Installing the Admin Role module

  1. Go to http://drupal.org/project/adminrole.

  2. Download the Drupal 5 Admin Role module to:

    <DRUPALROOT>/sites/all/modules

    (Select the "tarball" marked Recommended for Drupal 5.)

  3. Unzip the module.

  4. In your browser, go to the Modules page at Administer | Site Building | Modules (http://YOURSITE.com/admin/build/modules). Scroll down to the Other fieldset, and enable the Admin Role module.

Adding an Admin Role

  1. Go to the Roles page at Administer | User Management | Roles (http://YOURSITE.com/admin/user/roles) and add an admin role.

Configuring the Admin Role module

  1. Go to the User management | Admin Role page at (http://YOURSITE.com/admin/user/adminrole) and select your newly created admin role from the drop-down list.

  2. Go to the User Management | Access Control page, and note that the admin(first column) already has the permissions set. These permissions were enabled by the Admin Role module.

Creating a User for the Admin Role

  1. Go to Administer | User Management | Users and select Add user.

  2. On the User account page for your new user, add a Username, E-mail address, and Password, and be sure to check the admin role.

Recipe notes

You will receive an Admin Permissions Set message at the top of the module page each time you enable a new module (some modules do not actually create new permissions, but you will receive this status message, nevertheless).

You have been reading a chapter from
Drupal 5 Views Recipes
Published in: May 2009
Publisher: Packt
ISBN-13: 9781847196965
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image