Defining Role Access
One of the biggest favors you can do for your Contribute users is to restrict their access. The key reason for business users being hesitant to work on their Web sites is the fear of causing inadvertent damage; a secondary reason is the sense of being overwhelmed with too many choices. By editing a role's settings, you can target your users to work only on pages within their own department's portion of the site and to create pages only from their own templates.In this exercise, you'll examine four related categories of the role settings dialog box: General, Folder/File Access, New Pages, and File Placement. After the settings are modified, you'll have a chance to experience the results. You'll start by creating a new role to be used by managers in the Human Resources department of Bounty General.
1. | In Contribute, choose Edit > Administer Websites > Design_Deploy. While in the Users and Roles category, click Create New Role. When the Create New Role dialog box opens, select Publisher from the "Create new role from copy of" area. Enter HR Manager as the name of the new role and click OK. When the Administer Website dialog box shows the new role, select Pat Publish and click Reassign. In the Reassign dialog box, choose HR Manager and click OK.Because the Bounty General Web site is structured with departments in various folders, you can be very specific in role settings. As a follow-up to this exercise, you might want to create another role for HR Assistants based on the Writer role and customized to the Human Resources department. |
2. | Select the newly added HR Manager role and click Edit Role Settings. In the General category of the Edit " HR Manager" Settings dialog box, keep the "Allow users to publish files" option checked. Change the Role Description text to read as follows:Users in this role can create and edit pages in the HR department, and publish pages to the HR department's Web site. Click Choose. When the Choose File on Website dialog box opens, expand first the site root and then the hr folder. Select the index file and then click OK to return to the Edit "HR Manager" Settings dialog box.[View full size image] ![]() |
3. | In the Edit "HR Manager" Settings dialog box, click the Folder/File Access category. Choose "Only allow editing within these folders." Contribute alerts you that one of the file placement rules uses a folder where users can't publish pages and asks whether you want Contribute to add this folder automatically to the Folder/File Access list. Click OK. After Contribute adds the folder, click Add Folder. When the Choose Folder dialog box opens, double-click the hr folder in the site root. Click Select "hr" and leave the File Deletion option unchecked.[View full size image]![]() |
4. | Switch to the New Pages category of the Edit "HR Manager" Settings dialog box. Deselect both the "Create a blank page" and "Use built-in starter pages" options. The option to create a new page by copying an existing one should be turned on. In the lower portion of the dialog box, make sure that "Use Dreamweaver templates" is checked, and select "Only show users these templates." Select the hr_newsletter entry in the Hidden Templates list and click Show.[View full size image]![]() |
5. | Select the File Placement category in the Edit "HR Manager" Settings dialog box. Verify that only .css files are directed to a site-relative location, and that all other file types are placed next to the draft. Make sure the "Reject linked files (except images) that exceed max file size" option is unchecked. When you're done, click OK and close the Administer Website dialog box.[View full size image]![]() |
6. | Choose Edit > My Connections. In the My Connections dialog box, select the Publishing Services server entry and click Disable. Choose Enable. When the Log in to Publishing Services dialog box appears, enter ppublish in the Username field and publish in the Password field; click OK. After the Role in the My Connections dialog box changes to HR Manager, click Close.To test the changes, first make sure that the HR Manager is in fact limited to editing pages within that department. |
7. | If you have an open draft, choose Save for Later. Click Home Pages > Design_Deploy the index page for the HR department is displayed. To visit the home page of the PR department, change the Web address in the Location field of the browser from this:http://[yourComputerName]/design_deploy_web/hr/index to this:http://[yourComputerName]/design_deploy_web/pr/index The message bar indicates that you don't have permission to edit this page. Click Choose. Notice that only the two folders specified in the Folder/File Access category are showing. Double-click the hr folder entry and then double-click the info folder; select employee_records and click OK. Click Edit Page. When the page opens, click Save for Later.Verify that the options to create a new page are enabled properly. |
8. | Click New Page. When the New Page dialog box opens, verify that only a single Dreamweaver template, hr_newsletter, is available and that the options for creating a page from a blank page and Starter Pages are no longer present. Click Cancel to dismiss the New Page dialog box. |