Chapter 34. Putting It All Together: Using Contribute to Manage Site Content

In this chapter

The last piece of the puzzle of building a site for Retro’s Cycles is enabling the organization to manage certain aspects of their own site. As you saw in the Dreamweaver chapters, one way to do this would be to build the site using strictly database-driven content and then build an administrative section of the site to allow the client to log in and modify their page content.

Although this might make sense for a large company that has to maintain hundreds or thousands of pages, it’s probably not worth the time and development cost to create an online content management system in this situation.

In the past, the only other alternative was to turn over the keys to the entire site and then, when an accident happened and an employee compromised the page layout, the page would have to be restored from backup or the site creator would have to be re-engaged to fix the problem.

Contribute provides a happy medium between these two extremes by providing a low-cost solution that enables you to enforce template-based structures to allow content to be updated while avoiding alterations of the page layout.

Creating a Contribute Connection for Retro’s Cycles

The first step in setting up the content management system with Contribute is to create a site for Retro’s Cycles.

Note

Yes, yet another connection. Throughout the book you have seen the creation of several connections, including a ColdFusion connection to the database which, in turn, provided access to a Dreamweaver connection and now a Contribute connection. Be sure that you understand the differences between the connections and why each is important.

  1. Open Contribute.

  2. From the menu bar, choose Edit, My Connections.

  3. In the My Connections dialog box, shown in Figure 34.1, click the Create button.

    The My Connections dialog box enables you to connect to websites.

    Figure 34.1. The My Connections dialog box enables you to connect to websites.

  4. In the Create Connection dialog box (see Figure 34.2), click Next because you don’t have a connection key.

    Because you don’t have a connection key, you need to create a connection manually.

    Figure 34.2. Because you don’t have a connection key, you need to create a connection manually.

  5. In the URL field for the website, type the URL to the site you have been creating for Retro’s Cycles. If you followed the defaults throughout the book, the URL is http://localhost/retroscycles (see Figure 34.3).

    Add the URL to the site to which you are connecting.

    Figure 34.3. Add the URL to the site to which you are connecting.

  6. Because the site is located on your local hard drive, choose to connect to the site via Local/Network (see Figure 34.4). Click the Choose button and browse to the local folder that contains your pages. If you have been following the defaults, the path is c:InetPubwwwroot etroscycles.

    Choose the connection type for your site.

    Figure 34.4. Choose the connection type for your site.

  7. Next, Type your full name and email address. This information helps to identify who made changes to a page for review purposes (see Figure 34.5).

    Type your identification information.

    Figure 34.5. Type your identification information.

  8. The last step in creating the connection is to review the information you just entered (see Figure 34.6). If corrections need to be made, click the Back button until you reach the page you want to correct. If the information is correct, click the Done button.

    Confirm that the connection information is correct.

    Figure 34.6. Confirm that the connection information is correct.

  9. When the connection has been created, it is visible in the My Connections dialog box. From this dialog, you can edit the connection settings and administer the website settings.

Setting Up Users Via Connection Keys

Now that you have the connection created, the next step is to invite the appropriate people to become editors of the site. Do this by sending them a connection key, which they will install on their local machines. When clicked, this key automatically adds the site connection to Contribute on their local machines and sets the authorization level for their accounts. In the case of Retro’s Cycles, two people will be managing the content of the site. Nancy is the sales manager and has agreed to take responsibility for the website. But because she is busy at times, she has asked that Joe, one of the parts guys who is pretty knowledgeable about computers, be able to create pages that she can review and approve before publishing them to the site.

The roles that Nancy has described for herself and Joe are those of Publisher and Writer. Nancy needs to be able to edit content and publish changes to the site, whereas Joe needs to be able to edit content and save drafts for Nancy to review and publish. To create these permission levels, follow these steps:

  1. In the My Connections dialog box, click the Administer button in the upper-right corner. Contribute opens a dialog box indicating that you can choose the environment in which you would like your users to edit.

  2. Because the staff of Retro’s Cycles are comfortable with using a word processor, choose the standard word processing environment and click Yes to indicate that you want to become the Administrator for the site.

  3. In the Administer Website dialog box, shown in Figure 34.7, select the User and Roles category. This dialog shows users who are part of the site and enables you to invite others to have a role in managing content. Click the Send Connection Key button to send a key to Nancy.

    The Administer Website dialog box allows you to configure users and their roles.

    Figure 34.7. The Administer Website dialog box allows you to configure users and their roles.

  4. In the Send Connection Key dialog box (see Figure 34.8), choose Yes to send the current connection settings. Click Next.

    Choose to send the current connection settings.

    Figure 34.8. Choose to send the current connection settings.

  5. Because Nancy will be a Publisher for the site, choose Publisher and click Next.

  6. To communicate the connection key, you’ll be sending the key to Nancy via email, so choose the Send in Email radio button and then type a unique password for Contribute to use for the base of the encryption key (see Figure 34.9).

    Type the password that will be used for the base encryption.

    Figure 34.9. Type the password that will be used for the base encryption.

  7. Finally, review the connection key settings shown in Figure 34.10 and click OK if everything appears to be correct.

    Review the encryption key settings.

    Figure 34.10. Review the encryption key settings.

  8. With the connection key settings configured, Contribute spawns an email in your default mail client that includes the encryption key as an attachment (see Figure 34.11). The recipient need only click on the attachment to install the key.

    Send an email to the user with the encryption key as an attachment.

    Figure 34.11. Send an email to the user with the encryption key as an attachment.

    Note

    When Nancy receives her email, she also needs to know the password that you set up for the base of her encryption, so be sure to communicate that password to her in a way other than in the same email that sends the encryption key.

  9. Next, follow through the same steps to create an encryption key for Joe, only set him up as a Writer rather than a Publisher.

  10. When completed, close the My Connection dialog box by clicking Close.

Browsing the Existing Layout

Before you start adding content to the pages, you should take a look at how the Contribute browser works and examine the site’s current structure.

  1. When the site was configured in Contribute, the home page of the site was opened in the Contribute browser (see Figure 34.12). Roll your mouse over the rollover links on the left side of the home page and notice that they change state as expected.

    The home page is displayed in the browser and the rollover links function as expected.

    Figure 34.12. The home page is displayed in the browser and the rollover links function as expected.

  2. Next, click the Contact button and notice that the browser renders the contact.cfm page. Click through the About Us and Services links and they render the appropriate links as well.

  3. Click the For Sale button and notice that the database-driven table created in Dreamweaver is displaying correctly (see Figure 34.13).

    The dynamic table displays the correct content.

    Figure 34.13. The dynamic table displays the correct content.

  4. Click on any of the links in the inventoryid column and note that the Contribute browser loads the details for that record (see Figure 34.14).

    The dynamic details are displayed correctly as well.

    Figure 34.14. The dynamic details are displayed correctly as well.

    Now that you know that the hyperlinks work as expected, you can start adding content to the blank pages.

Adding Content to the Pages

With the site connection configured and the user encryption keys sent, the next step is to use Contribute to add the base content that the staff of Retro’s Cycles will use to build their site. At this point, you are adding placeholder text that indicates to Nancy and Joe what type of content they should be placing in the site. To create the placeholder text, follow these steps:

  1. In the Contribute browser, click the link to the home page.

  2. To edit the page, click the Edit Page button in the upper-left corner of the browser. Contribute switches to Edit mode and the Contribute toolbar changes, replacing the navigation buttons with editing buttons (see Figure 34.15).

    Switch Contribute to Edit mode.

    Figure 34.15. Switch Contribute to Edit mode.

  3. Because these pages are based on a Dreamweaver template, Contribute recognizes the markup and allows you to access only the erTitle and erPageContent editable regions. Place your cursor in the erTitle editable region.

  4. In the editable region, type Welcome to Retro's Cycles. Highlight the text and click the Bold button on the button bar. Change the font style and size to Arial, 12. Note that Contribute automatically creates a style for you named Style1 that you can reuse throughout the page (see Figure 34.16).

    Add a title to the page and create a style based on the title.

    Figure 34.16. Add a title to the page and create a style based on the title.

  5. Next, place your cursor in the erPageContent editable region and type Add introductory page content here (see Figure 34.17).

    Add the placeholder text to the page.

    Figure 34.17. Add the placeholder text to the page.

    Note

    Don’t worry if the page layout starts to look a little strange when you add new content. As soon as you publish the changes, the layout returns to normal.

  6. Note in Figure 34.17 that the default font for the page has automatically been set to a sans serif typeface. In addition, notice that the title of the page—Retro’s Cycle Home Page—displays in the application bar of Contribute. You need to update this to read “Retro’s Cycles Home Page” instead. To do this, click the Page Properties icon in the browser’s upper-right corner.

  7. In the Page Properties dialog box, you can select from the various page settings that are editable. Adjust the title so that it reads “Retro’s Cycles Home Page,” as shown in Figure 34.18. Click OK to close the dialog box.

    Adjust the page title so it reads correctly.

    Figure 34.18. Adjust the page title so it reads correctly.

  8. To apply the changes to the page, click the Publish button in the Contribute bar. Contribute displays a pop-up box (see Figure 34.19) letting you know that the content was published successfully.

    The adjusted page content has been published.

    Figure 34.19. The adjusted page content has been published.

  9. Click OK to close the message and Contribute renders the new page in the browser.

Following the same steps, you can easily add placeholder text for each empty page in the site. This would provide Nancy and Joe with a starting point to determine what content they need to develop before publicizing the site to their customers.

Adding FlashPaper Documents

One additional content element that Retro’s Cycles indicated they wanted on their site is a price list of the various services that they offer. They have the price list in a Microsoft Word document and, rather than retyping it into HTML, they want to place it on the site as a FlashPaper document.

  1. To add the document to the site in Flashpaper, navigate to the Services page in the Contribute browser.

  2. Click the Edit Page button to switch to Edit mode.

  3. Place your cursor in the erTitle editable region and click the Align Center button on the Contribute toolbar.

  4. In the editable region, type Retro's Cycles Services. Highlight the text and click the Bold button on the button bar. Change the font style and size to Arial, 12. Again, Contribute automatically creates a style for you named Style1 that you can reuse throughout the page (see Figure 34.20).

    The title has been added to the Services page.

    Figure 34.20. The title has been added to the Services page.

  5. Place your cursor in the erPageContent editable region and click the Align Center button on the Contribute bar. In the editable region, type Click here for a complete list of our services.

  6. Because the Word document does not fit in the template of the site, you must create a link to a new page and insert the FlashPaper object into that file. Highlight the text and click the Link button on the Contribute bar. From the drop-down, choose Create New Page.

  7. In the Insert Link dialog box, choose Blank Web Page and type Retro's Cycles Price List in the New Page Title field (see Figure 34.21). Click OK to create the new blank page.

    The Insert Link dialog box enables you to create a new page and link to it.

    Figure 34.21. The Insert Link dialog box enables you to create a new page and link to it.

  8. Click OK to create the new page.

  9. From the menu bar, choose Insert, Document with FlashPaper. Browse to the retros_cycles_services.doc document, located in the images folder of the site, and click Open.

  10. From the FlashPaper Options dialog box, shown in Figure 34.22, accept the default settings and click OK.

    Accept the defaults for the new FlashPaper file.

    Figure 34.22. Accept the defaults for the new FlashPaper file.

  11. Wait a few seconds while FlashPaper converts the document and places it into the page (see Figure 34.23).

    The FlashPaper document has been placed in the page.

    Figure 34.23. The FlashPaper document has been placed in the page.

  12. Click the Publish button. In the Publish New Page dialog box, shown in Figure 34.24, name the file service_list.cfm and click Publish.

    Publish the new page to your site.

    Figure 34.24. Publish the new page to your site.

  13. To finalize the link to the page, click the Back button in the Contribute bar to switch to the Services page. Click the Edit Page button and then click Publish to apply the changes to the page.

As you can see, using Contribute to manage website content is easy and flexible. The wide range of editing tools offered by Contribute can help you enable clients and coworkers to manage their own content without having to worry about adversely affecting site design.

Troubleshooting

I can’t find the retros_cycles_services.doc document that you reference. Where can I find it?

If you worked through the Dreamweaver section of the book, the document is located in the images folder of the site that you created earlier. If you haven’t worked through that section of the book, you need to download the support files from the companion site.

When testing the rollover links. I don’t see where to roll over in the far left of the Contribute interface. Where should I look?

The rollover links are tested in the far left of the page, not in the far left of the Contribute interface.

Best Practices—Contribute Versus Content Management Systems

When developing a website for a client or in an environment where others will be maintaining the content, there is always the question of which content management tool is appropriate. In many cases, Contribute provides the solution. However, a browser-based content management system is more appropriate in others.

When developing a site, one of the first questions you should ask yourself is whether your content will be embedded into the page or drawn from a database. If the answer is in a database, Contribute won’t do you much good. Contribute isn’t capable of editing database-driven content, so it would be more appropriate to look toward building a browser-based content management system. Browser-based systems usually must be homegrown and therefore take time to develop. In addition, a higher level of training must often be offered to end users before they are comfortable with the process of maintaining content.

Sites that feature static content, on the other hand, benefit from the features that Contribute has to offer. Contribute’s low cost and easy-to-use interface offer a quick way to get your end users up to speed quickly. In addition, inexpensive training on Contribute is offered in a variety of formats, ranging from web tutorials to print books.

So, when planning your next web project, be sure to think about the content maintenance aspect and which tool might be more beneficial to your client or your project in the long run. Both options have their pros and cons. Taking the time to perform the analysis prior to the development phase can help you determine which would be appropriate.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.146.176.145