Administrating Contribute-Enabled Sites in Dreamweaver
Again, because we're assuming the role of Wally the webmaster, our next step is to enable Contribute compatibility for our Dorknozzle website. When that's done, we'll want to set roles and delegate permissions for specific users (namely Ada, Cammy, and Tina) of the Dorknozzle site. To enable Contribute compatibility for the Dorknozzle site, follow these instructions:
1. | Assuming that Dreamweaver is open, select the Manage Sites option from the Site menu. The Manage Sites dialog appears. |
2. | Choose the Dorknozzle site from the list and click Edit. The Site Definition for Dorknozzle dialog appears. |
3. | Select the Contribute category and select the Enable Contribute Compatibility check box. Dreamweaver displays two read-only labels (Rollback and CPS), the Site Root URL text box, and the Administer Site in Contribute button. |
4. | Enter the name of the URL for your organization's website in the Site Root URL text box. For Dorknozzle, that URL is http://www.dorknozzle.info. Obviously, yours will be different.NOTEIn our Dorknozzle scenario, the Local computer is represented as each individual developer's personal folder on their computer while the Remote folder is the physical location of the Dorknozzle files on the network (assuming that the web server is accessible on the network). For Contribute purposes, however, we enter the Site Root URL or, more specifically, the URL outside users use to view the Dorknozzle site (http://www.dorknozzle.info). |
5. | Click Test to force Dreamweaver to check connectivity. Once Dreamweaver connects to the Contribute site, a message appears similar to Figure 13.2.Figure 13.2. Test the connection to the Site Root URL. If Dreamweaver can connect, it displays a message indicating such.[View full size image] ![]() |
With the Site Root URL in place, we're technically finishedalthough we've yet to delegate permissions for Contribute users. Before we do that, let's review the location of our files and the architecture we're dealing with here. You can follow along by reviewing the diagram in Figure 13.3.
Figure 13.3. The Contribute architecture varies depending on your role in the organization.
[View full size image]

Figure 13.4. Contribute Administration allows you to determine what happens when users press Enter: choose between a line break and a paragraph break. It also allows you to set yourself as the site's administrator.

- Standard word processing :
Select this option if you want to treat the Enter key the way it works in word processors. Whenever a user presses Enter, the cursor is brought down to the next line. - Dreamweaver-style editing :
Select this option if you want the Enter key to be treated the same way it works in Dreamweaver, as a <p> tag addition. Users must know to press Shift+Enter to go to the next line.
Let's assume that our content contributors are total novices, so we'll choose the Standard Word Processing option. Dreamweaver then asks if you want to become the website's Contribute Administrator. Because we do, click Yes. The Administer Website dialog appears, similar to Figure 13.5.
Figure 13.5. The Administer Website dialog allows you to create roles, edit existing roles, send connection keys, and set an administrator password.
[View full size image]

- Users and Roles
- Administration
- Publishing Services
- Web Server
- Rollbacks
- New Pages
- Compatibility
To gain a firm understanding of each category, let's discuss each in more detail, beginning with creating new users and roles.
Defining Users and Roles
The driving force behind the Site Administration dialog is the Users and Roles screen shown in Figure 13.5. Use this screen to create new Contribute roles, edit properties for existing roles, and add new users to a role by sending them a connection key file (discussed later in the chapter). Roles are divided into the following three categories:
- Administrator :
The Administrator has unrestricted access to the site within Dreamweaver and Contribute. The Administrator sets roles, settings for roles, and gives access to Contribute users. The Administrator can also edit and publish content freely using both Dreamweaver and Contribute.NOTEYou are not limited to assigning only a single Administrator. Rather, you can add as many Administrators as you wish. - Publisher :
Users defined as Publishers have permission to modify and publish content from within Contribute. However, Administrators can edit settings for the Publisher role such that they can only insert images and edit and publish text, essentially preventing Publishers from rearranging the overall look of the site using Contribute. - Writer :
Users defined as writers have limited access. In fact, writers can modify only text. Rather than publishing the text when they're finished making changes, they send drafts to either Administrators or Publishers for review. The Publisher or Administrator then can decide to either publish or reject the changes.
Other options in this screen include the ability to edit settings for an existing role, create a new role, remove existing roles, and send connection keys. Although we can live with the existing roles, let's edit the Publisher role such that they can't insert their own images into a web page. We'll assume that the company's design is set in stone and, as such, we do not want to allow anyone to make changes to it. To edit settings for the Publisher role, simply select the Publisher role from the list and click the Edit Role Settings button. The Edit Publisher Settings for Dorknozzle dialog appears, similar to Figure 13.6.
Figure 13.6. Use the Edit Role Settings dialog to configure particular options for an existing role.
[View full size image]

- General :
Use the General screen, shown in Figure 13.6, as a way to enable or disable the role's ability to publish content to the live site. You can also create a text-based description of what the role can and can't do and also set the default home page (maybe a directory in the main site) for users of that role. For our purposes, we'll leave the options as they are. - Folder/File Access :
Use the options shown inFigure 13.7. Use the Folder/File Access screen to enable only specific folders in the site root and to allow users permission to delete files.
[View full size image] - Editing :
Use the options shown in Figure 13.8 to set how users interact with the development environment in Contribute. Options include editing restrictions, including the addition of images, paragraph spacing properties similar to the ones set when the Administration screen first opened, and miscellaneous editing options including accessibility and third-party options. Because our company is strict about the overall look of the website, we'll want to restrict the Publisher role so that it can only make text edits and format changes. You can do that by selecting the Only Allow Text Editing and Formatting radio button.Figure 13.8. Use options in the Editing screen to set how users interact with editing features in Contribute.
[View full size image] - Styles and Fonts :
Use the options in this screen to set what kind of styles users can apply to elements within pages in Contribute. For instance, we can set preferences that restrict the addition of styles to those contained in the styles.css file located in the root of our Dorknozzle directory. To do this, enable the Show Only CSS Styles Included in This CSS File radio button and browse to the CSS file located in the root of the Dorknozzle directory. Also disable the Allow Users to Apply Fonts and Sizes, the Allow Users to Apply Bold, Italic, Underline, Strikethrough, and Fixed Width Styles, and the Allow Users to Apply Font and Background Color check boxes. Setting these properties forces users to implement styles in the styles.css file as set by the marketing department (and perhaps as outlined in a corporate style guide of some sort). The result of the changes made to this screen resemble those in Figure 13.9.Figure 13.9. Use options in the Styles and Fonts screen to set what kind of style properties can be applied to pages in Contribute.
[View full size image] - New Pages :
Use the powerful options in this screen to dictate how users can create new pages. For instance, you may or may not want to allow users to create new pages. If you do, enable the check boxes and also decide whether or not to use Dreamweaver templates (discussed in Chapter 15, "Working with Templates") or if you decide not to use templates, make a specific page or set of pages available to them when they open the New Document dialog. If you want to restrict the creation of new pages, disable all check boxes in this screen. Because our content editors will simply be making changes to existing pages, we'll disable all these options. The result looks similar to Figure 13.10.Figure 13.10. Use options in the New Pages screen to restrict or allow the creation of new pages in Contribute.
[View full size image] - File Placement :
The File Placement screen (shown in Figure 13.11) exposes properties that allow you to configure how users add styles, images, Microsoft files, PDF files, and so on to existing documents. You can cap the size of pages to which users try to linkwhich is an excellent way of preventing users from linking to pages that are inaccessible because of the sheer size of the page. For our purposes, we'll leave this screen as is.Figure 13.11. Use properties in the File Placement screen to limit the types of files added to pages in Contribute. You can also use this screen to cap the size of pages linked to from existing pages.
[View full size image] - Shared Assets :
Use the list in this screen (shown in Figure 13.12) to add, edit existing, and remove shared asset allocation for the site. For instance, your company might make a Flash file available for use on all company web pages. If that's the case, you'll want to add that shared asset to the list in this screen so that users in this role can add that asset to their pages. Again, we'll leave this screen as is.Figure 13.12. Use the list in the Shared Assets screen to share assets across roles.
[View full size image] - New Images :
Use the options in the New Images screen (shown in Figure 13.1) to set default options exposed when images are added to pages in the site. You can set a cap (in KB) on images inserted to pages. Because we've prevented users from adding images to pages in this site, these options are disabled.
When you finish configuring options for the Publisher role, click OK.
Administration
You can use options in the simple Administration screen (shown in Figure 13.14) as a way to set the default email and password for the administrator of the site.
Figure 13.14. Use the Administration screen as a way to configure the default email and password of the site administrator.
[View full size image]

1. | Click the Set Administrator Password button. The Change Administrator Password dialog appears.Figure 13.13. Use options in the New Images role to set how images are inserted into the page in Contribute.[View full size image] ![]() |
2. | Enter a password into the New Password text box and then re-enter the same password in the Confirm New Password text box. |
3. | Click OK. |
That's it, you've now password protected the administration screens for this site.
Publishing Services
Out of the box, Contribute relies on the Website Administrator to manually set folder permissions for the site on the server. Although this can easily be done using the operating system's file explorer, it becomes a hassle and generally inconvenient when setting permissions for hundreds of users. Fortunately, operating systems such as Windows set the default permission to allow everyone access to a particular folder when it's first created. This is the reason we are allowed to add users freely in the Contribute Administrator dialog. The downside to this freedom is that it doesn't prevent users from manually entering the folder on the server and moving, deleting, or adding new files. In the real world, allowing everyone access to the company's files on the web server would be unthinkable. Generally, the head of your IT department would lock down the folder to everyone in the organization except one or two people. In situations such as these, it wouldn't make a lot of sense for the IT administrator to manually set permissions to allow scores of potential users access to a website folder on the server; you'd be at your desk all day just configuring roles and adding users in Contribute, and then you would have to verbally communicate to the IT administrator the people that require access to the particular folder on the server.To solve this dilemma, Macromedia has introduced Publishing Services. Part of the Web Publishing System suite, Publishing Services is an administration tool that ties into your company's folder and security administration interface (LDAP or Active Directory). Publishing Services provides a centralized interface, accessible from the screen shown in Figure 13.15, where you can add users to a role and then assign permissions to them for the site folder.
Figure 13.15. You can use Publishing Services as a centralized mechanism for setting folder permissions.
[View full size image]

Web Server
You can use options in the Web Server screen (shown in Figure 13.16) to configure Contribute and Contribute users to work with your web server.
Figure 13.16. Use options in this screen to configure Contribute and Contribute users to work with your web server.
[View full size image]

Rollbacks
Rolling back web pages is the process of going back to a previous version of a web page after it has been published. For instance, assume that Cammy the Content Manager makes a few changes to a page in the website and then, using Contribute, publishes her finished work. By default, Contribute stores a copy of the previous version in a _baks folder within the _mm folder root. As an Administrator, you decide to review Cammy's work and happen to find glaring errors. Rather than bringing the site down to fix the mistakes, you can simply right-click the file in the Site Management window and choose the Rollback Page option. Dreamweaver, interfacing with Contribute, digs the old version out of the _baks folder and replaces the live version with the older, accurate version. You can enable the Rollbacks feature and the number of rollback steps in the screen shown in Figure 13.17.
Figure 13.17. Enable rollbacks and the number of times rolling back is allowed here.
[View full size image]

New Pages
Similar to the document-encoding screen in the Page Properties dialog in Dreamweaver, you can use the New Pages screen, shown in Figure 13.18, to set the document encoding that should be used for your web pages in Contribute.
Figure 13.18. Set the document encoding type and the default extension of the page when a new page or template is created in Contribute.
[View full size image]

Compatibility
The Compatibility screen, shown in Figure 13.19, lets you provide editing and publishing access to older versions of Contribute.