Chapter 5 Services and Menus Web Publisher provides many sophisticated file management functions. There are two ways to access this functionality: through links and buttons on the Web Publisher Services page and through the Web Publisher menu commands. This chapter describes the Web Publisher Services page and then the menus, with each command described in the order in which it appears on the menu:
Web Publisher provides many sophisticated file management functions. There are two ways to access this functionality: through links and buttons on the Web Publisher Services page and through the Web Publisher menu commands.
Web Publisher Services Page
The File Menu
The Edit menu
The View Menu
The Help Menu
Select a file or folder in the Web Publisher window.
Click the Information toolbar button or choose Properties from the View menu. The Web Publisher Services page is displayed with the file's properties visible.
Figure 5.1    The Web Publisher Services page Properties Web Publisher files and folders have a set of default properties that describe many of their attributes. For example, when a file was created, who the lock owner is, and what its URL is.
Figure 5.1    The Web Publisher Services page
Select the file or folder in the Web Publisher window.
Click the Properties link. The Web Publisher Services window appears with the file or folder properties in the right frame. Figure 5.2    The Properties for a file
Figure 5.2    The Properties for a file
OwnerThe user name assigned to the file. Only owners can modify this field. If a file has no owner, anyone can define themselves as owner. See Chapter 7, "Access Control," for more information about file ownership.
Title: The HTML title, as tagged with the HTML tag of <TITLE>. This property is only available when the file's content is made searchable.
Author: The file's author, as tagged with the HTML tag of <META NAME="Author">. This property is only available when the file's content is made searchable.
DescriptionA description for the file, as tagged with the HTML tag of <META NAME="Description">. This property is only available when the file's content is made searchable.
Lock-StatusThe current lock status for the file. If a file is locked, only the lock owner can unlock it.
Lock-OwnerThe user name for the user that locked the file. Only the lock owner can unlock a file.
FilenameThe name of the file.
PathThe relative filename for the file. This is the filename without the root directory.
URLThe file's full pathname.
SizeThe size, in bytes, of the file.
CreatedThe date when the file was created.
ModifiedThe date when the file was last modified.
Searchable ContentsA flag indicating whether or not the contents are searchable. The default is Yes. If set to No, you can make the contents searchable by clicking the "Make contents searchable" checkbox. After you click Modify, the file contents are available for searching.
If set to Yes, you can make contents no longer searchable by clicking the checkbox. After you click Modify, the file contents are no longer available for searching.
Type in your new data and click any checkbox option you want to change.
Click Modify to change the existing property value, or click Reset to revert to the original value.
Figure 5.3    Custom properties
To view the custom properties for a file, do the following:
Access the Web Publisher Services page through one of the methods described in "Web Publisher Services Page."
Click the Custom Properties link. This displays a list of the custom properties that were defined by the server administrator at the time this file was last indexed.
Select the existing folder that is to contain the new folder. You can choose the primary document directory, or root.
From the File menu, choose New Folder or click the New Folder toolbar button. The Create New Folder dialog box appears with your folder displayed in the Make Folder In field. If you chose to make the folder at the root directory, the field is left blank.
Type the name for your new folder in the New Folder's Name field. Do not begin with a "/" or use spaces or apostrophes in the name.
Click Create to create the folder, or click Cancel to close the window and leave the server files untouched.
Select the existing folder to open.
From the File menu, choose Open Folder or click the Open Folder toolbar button.
Select the file.
From the File menu, choose Open File in Browser or click the Browse toolbar button.
In the Web Publisher window, select the file you want to edit.
From the File menu, choose Open File in Editor to launch the file's editor application and begin editing the file.
When you finish modifying the file, save it in the application and return to the Web Publisher window.
From Netscape Navigator's File menu, use the Open File command to select the server file for editing in Composer by entering the file's URL. This causes Web Publisher to lock the file so other users cannot edit it simultaneously.
In Composer, edit the file as usual.
When you finish modifying the file, use the Composer's Publish command to put it back on the server.
From the File menu, choose Cancel Editing File.
The Cancel File Edit dialog box appears. Click Yes to confirm that you want to cancel the edit.
Publishing an Edited File When you finish editing a file and save it, the new version is still not available on the server for other users until you publish it. You can only publish your own edited files. When you publish a file that does not have an owner, you are assigned as the file's owner.
In the Web Publisher window, select the edited file.
From the File menu, choose Publish An Edited File, or click the Publish toolbar button. The Publish File dialog box appears with your file's name in the Publish File field. Figure 5.4    Publish an Edited File dialog box
Figure 5.4    Publish an Edited File dialog box
Click Publish to publish the file.
Publishing all Edited Files When you finish editing a file and save it, the new version is still not available on the server for other users until you publish it. If you have edited more than one file for a given server, you can publish them all simultaneously rather than publish each file separately. If you have only edited one file, this function is disabled.
From the File menu, choose Publish All Edited Files. The Publish All Edited Files dialog box appears with a list of all files in the "edit" state.
Click Publish to publish the files.
In the Web Publisher window, select the file that you want to replace or update or select the folder that is to contain the new file.
From the File menu, choose Upload to Server. The Upload File or Folder dialog box appears. Figure 5.5    Upload dialog box
Figure 5.5    Upload dialog box
In the Upload Local File or Folder field, type the full pathname of your local file. If you have defined a default upload folder, the folder's name is already displayed.
Note: If you upload a folder and files with the same names as those already existing on the server, Web Publisher overwrites the existing folder and files.
Your destination folder's pathname appears in the To Server File or Folder field. You can also change the destination that appears.
You can lock a file when you put it on the server by checking the "Lock files after upload" option. The default is not to lock files.
Click Upload to add your local file to the server.
A dialog box is displayed asking you to update the file properties for this file. Click OK to go to the Web Publisher Services page with the Properties for this file.
In the Web Publisher window, select the folder that you want to replace or update or that is to contain the newly uploaded folder.
From the File menu, choose Upload to Server. The Upload File or Folder dialog box appears.
In the Upload Local File or Folder field, type the full pathname of your local folder. If you have defined a default upload folder, the folder's name is already displayed. An alternative is to click the Browse button to find it on your local system.
To upload your folder's subfolders, check the Include Subfolders checkbox. The default is not to upload subfolders.
You can lock the folder's files when you put them on the server by checking the "Lock files after upload" option. The default is not to lock files.
Click Upload to add your local folder to the server. A dialog box is displayed giving you a summary of the completion status for the uploaded folders and files.
A dialog box is displayed asking you to update the properties for this folder. Click OK to go to the Web Publisher Services page with the Properties for this folder.
When you download a file or folder with the Lock Server Files option set, the server files are locked so that other users can no longer edit the original server file.
You cannot download locked or edited files as Lock for Editing unless you are the owner of the file.
In the Web Publisher window, select the file or folder you want to download.
From the File menu, choose Download From Server.
For files, the Download File dialog box appears with the name of the selected file in the Download Server File field.
Figure 5.6    Download file dialog box
For folders, the Download Folder dialog box appears with the name of the selected folder in the Download Server Folder field.
Figure 5.7    Download dialog box
For folders, you can check the Include Subfolders option to also download any subfolders within the selected folder.
Type the download destination in the To Local File (for files) or To Local Folder (for folders) field. If you have defined a default download folder, the folder's name is already displayed. For files, you can type in a different filename to rename the file as part of the download operation.
You can place a lock on the server files you are downloading by choosing the Lock Server Files option. The default is not to lock files.
Click Download to download a server file or folder to your local system. For folders, a dialog box is displayed giving you a summary of the completion status for the downloaded folders and files.
Exiting from Web Publisher You can exit from Web Publisher at any time. To relaunch Web Publisher, you must return to the Web Publisher home page. See the section "The Web Publisher Home Page" in Chapter 3, "Installing and Configuring" for information about the home page.
Locking a File You can lock any file, including those owned by another user. If you lock a file, the file is displayed in the Web Publisher Services page with you as the lock owner and only you can unlock it.
In the Web Publisher window, select the file you want to lock.
From the Edit menu, choose Lock. If you did not set a user preference to confirm locking operations, the file is locked at this point.
If you have set the user preference to request lock confirmations, the Lock File dialog box appears with your file's name in the Lock File field.
Click the Lock button to lock the file.
Unlocking a File If you locked a file, you can unlock it. The server administrator is also authorized to unlock a file that you have locked.
In the Web Publisher window, select the file you want to unlock.
From the Edit menu, choose Unlock. If you did not set a user preference to confirm unlocking operations, the file is unlocked at this point.
If you have set the user preference to request unlock confirmations, the Unlock File dialog box appears with your file's name in the Unlock File field.
Click the Lock button to unlock the file.
Copying Files and Folders You can copy locked and unlocked files and folders. You need read and write permission for all the files and folders within a folder in order to be permitted to copy the folder. You are assigned as the owner of the new folders and files.
Select the file in the Web Publisher window.
From the Edit menu, choose Copy to (or use the Control key and then drag-and-drop method to copy the file into a new location). The Copy File or Folder dialog box appears with the name of the selected file in the Copy File or Folder field. Figure 5.8    Copy dialog box
Figure 5.8    Copy dialog box
Enter the filename for the new copy in the To File or Folder field (if you used the drag-and-drop method the file in step 2, this field is already filled in).
Click Copy to copy the file.
Select the folder in the Web Publisher window.
From the Edit menu, choose Copy to (or use the Control key + drag-and-drop method to copy the folder in a new location). The Copy File dialog box appears with the name of the selected folder in the Copy file field.
Enter the path for the new copy of the folder in the To file field (if you used the drag-and-drop method the file in step 2, this field is already filled in).
Click Copy to copy the folder and its files.
From the Edit menu, choose the Move to command (or use the drag-and-drop method to drag the file to its new location). The Move File or Folder dialog box appears with the name of the selected file in the Move File or Folder field. Figure 5.9    Move dialog box
Figure 5.9    Move dialog box
Enter the name of the folder that is to contain the moved file in the Within Folder field (if you used the drag-and-drop method the file in step 2, this field is already filled in). Do not type in a filename.
Click Move to move the file.
From the Edit menu, choose Move to command (or use the drag-and-drop method to drag the file to its new location). The Move File dialog box appears with the name of the selected folder in the Move file field.
Enter the new path for the folder in the To dir field (if you used the drag-and-drop method the file in step 2, this field is already filled in).
Click Move to move the folder and its files.
From the Edit menu, choose Rename. The Rename File dialog box appears with the name of the selected file in the Rename file field. Figure 5.10    Rename dialog box
Figure 5.10    Rename dialog box
Enter the new name for the file in the To Name field. Do not type in the file's path. That is, type newIndex.html, not /docs/newIndex.html.
Click Rename to rename the file.
From the Edit menu, choose Rename. The Rename File dialog box appears with the name of the selected folder in the Rename file field.
Enter the new folder name for the folder in the To Name field. Do not type in any additional pathname information. That is, type Project-X, rather than /docs/Project-X.
Click Rename to rename the folder.
From the Edit menu, choose Delete or press the Delete key. If you did not set a user preference to confirm deletions, the file is deleted at this point.
If you have set the user preference to request delete confirmations, the Delete File or Folder dialog box appears with your file's name in the Delete File or Folder field. Figure 5.11    Delete confirmation dialog box
Figure 5.11    Delete confirmation dialog box
Click Delete to delete the file or Cancel to close the window and leave the server file untouched.
From the Edit menu, choose Delete or press the Delete key. If you did not set a user preference to confirm deletions, the folder is deleted at this point.
If you have set the user preference to request delete confirmations, the Delete File or Folder dialog box appears with your folder's name in the Delete File or Folder field.
Click Delete to delete the folder or Cancel to close the window and leave the server folders untouched.
User Preferences You can set several preferences for Web Publisher: user name, operations to confirm, display font, and which local folders to use for uploading, downloading, and storing "in edit" files. These are stored in the nswppref.txt file in your Navigator's WebPub folder along with some other settings that Web Publisher sets for you internally. Communicator users can also set their editor preferences from this menu. See the section, "The Web Publisher Preferences File," for more information about this file.
Figure 5.12    The user name preference dialog box
Figure 5.13    The confirm operations dialog box
Figure 5.14    The local folder preferences dialog box Font The Font Chooser dialog box lets you define the font, font size, and font style to display in the window. Fonts in other windows and dialog boxes are not modifiable.
Figure 5.14    The local folder preferences dialog box
Figure 5.15    The font chooser dialog box
Figure 5.16    The editor preferences
Figure 5.17    The set editor program preferences dialog box
From the View menu, choose Properties or click the Information toolbar button. The Web Publisher Services window appears. See "Properties" earlier in this chapter and "File Properties" in Chapter 4, "Web Publisher QuickStart" for more information.
From the View menu, choose Sort By and choose the appropriate sort sequence from the submenu (Name, Date, or Size).
Alternatively, you can click the heading above the name, date, or size columns to resort the files and folders displayed in the window.
From the View menu, choose Redraw Window.
From the View menu, choose Reload Window.
To show the toolbar, from the View menu, choose Show Toolbar
To hide the toolbar, from the View menu, choose Hide Toolbar.
From the Help menu, choose the Web Publisher Help command.
This opens up a new web browser with the table of contents. You can navigate the User's Guide files by clicking on the topics you are interested in and then going back and forward as usual.
From the Help menu, choose the About command.