Checking In and Checking Out


If you are working on a team, the Check In/Out options can make collaborating on a Website much easier. When this feature is activated, if a team member checks out a file for editing, Dreamweaver locks the checked-out file on the remote server so that no one else on the team can edit the file until it is checked back in. As long as the entire team is using Dreamweaver and all team members enable Check In/Out, use the Files panel, and are connected to the remote server, the Check In/Out feature lets your group know when someone else is working on a specific file, preventing accidental overwriting of material or duplicate efforts.

1.

Choose Site > Manage Sites.

The Manage Sites dialog box opens.

2.

Choose the Yoga Sangha project site in the list and click the Edit button.

The Site Definition For Yoga Sangha dialog box opens.

3.

Choose Remote Info in the Category list in the Advanced portion of the dialog box.

The remote-site information is displayed.

4.

In the Check In/Out area, check the Enable File Check In And Check Out box.

One additional checkbox and two additional text boxes appear. Files become checked out automatically as you open them if Check Out Files When Opening is checked. You must be connected to the remote site for this feature to function properly; if you are not connected, Dreamweaver connects to the remote site automatically.

The additional text boxes are Check Out Name and Email Address.

5.

Type a checkout name and your e-mail address in the appropriate text fields. Click OK in the Site Definition dialog box and then click Done in the Manage Sites dialog box.

Your checkout name is only for group reference; it can be your full name or simply a user name. This name will display in the Checked Out By column of the Files panel when you check out a file. Your e-mail address is available to allow team members to contact you with questions.

6.

In the Local Files list view of the Files panel, select the index.html page in the Lesson_14_Sites Folder and click the Check In button at the top of the window. Do the same for the sanskrit.html page. Click No if asked whether you want to include dependent files.

Dreamweaver uploads the selected files to the remote folder. In the Local Folder pane of the Files panel, the files are marked with a small lock icon to let you know the files have been checked in and will need to be checked out for you to edit them locally.

When you work with a group of people and use the Check In/Out feature, it is important for everyone to use the Check In and Check Out File(s) icons instead of the Get File(s) and Put File(s) icons to upload and download files.

If you already have a local copy of your remote site, you must check in each local file for the Check In/Out feature to work properly. When you enable Check In/Out, keep in mind that your files are not automatically checked into the remote server. The check and lock icons indicate the status of a file. A check indicates that a file is checked out; a lock indicates that a file is checked in. If a file has neither a check nor a lock, it has no Check In/Out status. Such an unmarked file is available to open or edit. If you are working with team members and using Check In/Out, it is a good idea to check out and check in your entire site after you enable Check In/Out so that no unmarked files are opened and edited accidentally.

7.

In the Files panel, select the sanskrit.html page in the Lesson_14_Sites Folder. Click the Check Out File(s) button at the top of the panel. Click No if asked whether you want to include dependent files.

To ensure that you will be working with the most recent version, the file is downloaded to your local site. The file is marked in both the local and remote panes with a small green checkmark next to the file icon, indicating that the file has been checked out by you. The Checked Out By columns in both the local and remote panes show your checkout name in the form of a clickable link to your email address. Files checked out by other members of your team are displayed with a red checkmark, indicating that you cannot check those files out until they have been checked back in.

If you attempt to open a file that someone else has checked out, Dreamweaver informs you that the file is already checked out and gives you several options: You can cancel opening the file, open the file to view it, or override the checkout.

Note

If you receive a warning that the file is checked out by someone else during this exercise, choose to override the checkout.

For the Check In/Out feature to work properly, everyone on your team should be using Dreamweaver. Other FTP programs don't recognize the Check In/Out feature. Other programs will be able to overwrite files, negating the purpose of checking files in and out. When you use the Check In/Out feature, FTP programs can see the files that Dreamweaver creates: For each file that is checked out, an LCK file is created on the server, letting Dreamweaver know that the file is checked out. For this exercise, you might be able to see the sanskrit.html.lck file in the Finder (Macintosh) or Windows Explorer (Windows). Don't delete these files! They are required for the functionality of the Check In/Out feature and take up very little space.

In addition, all files that are used by the team must initially be checked in on all users' workstations so that Dreamweaver will apply the Check In/Out restrictions. If a file has never been checked in or out, that file will still be editablebypassing the Check In/Out feature.

8.

In the Files panel, select the sanskrit.html page in the local panel. Click the Check In button at the top of the window. Click No if asked whether you want to include dependent files.

This file is now checked in and cannot be edited until it is checked out again. You should leave the Check In/Out feature enabled for nowit is necessary for an exercise later in this lesson.

Note

If Check In/Out is disabled and you want to unlock files, you can click the Options menu on the Files (or Assets) panel group and choose File > Turn Off Read Only. You can also access this option by right-clicking or Ctrl-clicking (Macintosh single button mouse) the file and choosing Unlock.





Macromedia Dreamweaver 8(c) Training from the Source
Macromedia Dreamweaver 8: Training from the Source
ISBN: 0321336267
EAN: 2147483647
Year: 2006
Pages: 326

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net