Complete Contents
Introduction
Chapter 1 Using Netshare
Chapter 2 About Web Server Publishing
Chapter 3 Installing and Configuring
Chapter 4 Web Publisher Quickstart
Chapter 5 Services and Menus
Chapter 6 Search
Chapter 7 Access Control
PreviousNextContents




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 Services Page
The Web Publisher Services page provides many file management functions in a single form plus providing direct access to access control, search, and help. This section describes the functions and services available from this page.

To display the Web Publisher Services page, do the following:

Note
Users of Netscape Communicator can choose the Page Services command from the Communicator's View menu to display the Web Publisher Services page for the file currently being browsed.

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.

To access the properties for a file or folder from Web Publisher, do the following:

To access the properties for a file or folder through the Web Publisher Services page, do the following:

Files have the set of default properties listed here. Folders have only two modifiable properties, Description and Owner, and four read-only properties: Filename, URL, Size, and Modified.

You can perform a search on any property as well as on any searchable file contents. For example, you can search for all files that belong to a certain author, for all the locked files, or for any file with a particular string in the title field. For more information about doing searches, see Chapter 6, "Using Search."

Modifying a File's Properties
You can change some properties for a file or folder. You can assign yourself as owner of a file or folder that has no owner or you can reassign ownership for files and folders that you own, you can lock an unlocked file or you can unlock files that you have locked, and you can make the file's contents searchable or unsearchable. You can enter new values for title, author, and description, and Web Publisher will use your new values instead of those defined in the file.

To modify these fields, follow these steps:

This function reindexes the selected file, updating the searchable properties (and file contents if that option is chosen).

Custom Properties
Your server administrator can create additional custom properties for the web publishing collection. Once he or she has created them, these properties are included whenever a file that is part of the web publishing collection is indexed. Such properties are user-modifiable and Web Publisher uses any values you input instead of the original value in the file once you make changes. The indexing process makes these custom properties available to you for viewing and searching.

Figure 5.3    Custom properties

Note
If a file has not been indexed since the adding of the custom property, the property is not viewable. Custom properties are not available until a file has been reindexed.

To view the custom properties for a file, do the following:

Web Publisher Button
This button is useful for users of Netscape Communicator who have accessed the Web Publisher Services page through the page services item on the Communicator's View menu. When you click this button, a new Web Publisher applet is launched.

Access Control Button
When you click this button, the access control page is displayed. See Chapter 7, "Controlling Access" for more information about access control.

Search Button
When you click this button, the Search page is displayed. See Chapter 6, "Using Search" for more information about performing searches.

Help Button
When you click this button, the online help file containing information for this screen is displayed. This help file also contains information about the menu commands in Web Publisher.


The File Menu
The File menu provides menu commands that allow you to manage server folders, edit and publish files, and upload and download files and folders.

Creating a New Folder
The Web Publisher allows you to create new folder on the server. Because this writes a new file to the server, you must have write permission in order to do this. Web Publisher prompts you for your password to authorize the operation.

To create a new folder on the server file system:

    • 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.

You cannot create a new folder with the same name as a folder that already exists in that directory on your server. If you try, you get an error message and the operations fails.

Opening an Existing Folder
The Web Publisher allows you to open an existing folder on the server, which implicitly reloads the current server data for this folder.

To open a folder on the server file system:

The folder is displayed in the Web Publisher window as open, with its files and subfolders visible.

Browsing a File
You can browse many types of server files in your web browser. HTML files are displayed as is. PDF, email, and news files are displayed as plain text in your browser. Files in other format, such Microsoft Word and Excel can be viewed in their original format if you have a helper application defined for your browser. If you don't, the web browser prompts you to identify which application should be used.

To view the contents of a file on the server:

    • Select the file.
    • From the File menu, choose Open File in Browser or click the Browse toolbar button.

The file is displayed in a web browser window.

Editing a File
You can edit unlocked files, or files that you locked, if you have write access permission for the files. Web Publisher puts the file into an "edit state," locking out other users so that they cannot edit your file until you have published it back to the server.

Depending on what your editor preferences are, this command launches Netscape Navigator's HTML editor, Netscape Composer, Adobe Acrobat, Microsoft Word or Excel, a simple text editor, or some other application that you have associated with this particular file's format. If you do not define an editor program for a given file type, Web Publisher displays an Editor Launching Error when you open the file for editing.

To edit a file in Web Publisher:

To edit a file in Netscape Composer:

Canceling an Edit
You can cancel an edit operation before you save your changes in the editor application, while the file is still in an "in edit" state, so that your file is unlocked and remains unchanged on the server.

To cancel an edit:

Publishing Edited Files
An edited file is not available for others to modify until it has been published back to the server. Until it is published, it is in an edit state, which locks out other users. The properties and content of new HTML files are automatically indexed during the publishing operation, making them available for searching. If you are publishing a revised existing file, the publishing operation reindexes the file's properties (and contents, if that option is selected on the Properties page).

Note
If a file was manually locked before you edited it, publishing the file releases the manual lock as well as the implicit editing lock.

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.

To publish an edited file to the server:

The edited file is again available on the server.

Note
If you are using Netscape Composer, when you complete your changes, use the Composer's Publish command to restore it to the server. This causes Web Publisher to unlock the implicit edit lock on 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.

When you publish a file that does not have an owner, you are assigned as the file's owner.

To publish all edited files to the server:

The edited files are again available on the server.

Uploading to Your Server
You can put a file or folder from your local system onto the server, making it available for other users. Whether a file is an application, a word processing document, a PDF file, a spreadsheet, or HTML fileyou can upload it to the server with Web Publisher.

The properties and content of new HTML files are automatically indexed during the upload, making them available for searching. If you are uploading a revised existing file, uploading reindexes the file's properties (and contents, if that option is selected on the Properties page).

You can add a file or folder to an existing folder and set it to be locked or unlocked. When uploading a folder to the server, you can also upload its subfolders.

You can establish a default upload directory on your local system that becomes the location where Web Publisher expects your local files to be found. To do this, you define a local directory for uploading and downloading as described in "User Preferences."

To upload a file:

To upload a folder (for Communicator users only):

Downloading From the Server
You can download a file or a folder from the server to your local system. You can choose to also download the subfolders within the folder you want to download and you can choose to lock the server files that you are downloading.

You can establish a default download directory on your local system that becomes the location where Web Publisher places your downloaded files. To do this, you set a user preference as described in "User Preferences."

Figure 5.6    Download file dialog box

Figure 5.7    Download dialog box


The Edit menu
The Edit menu provides menu commands that allow you to lock and unlock files; copy, move, rename, and delete files and folders; and set user preferences.

Locking and Unlocking a File
Once you have locked a file, other users cannot move, rename, delete, or edit it until you unlock it. You can manually lock a file when you do not want other users to have access to it. You can also direct Web Publisher to lock files that you are downloading.

You can unlock any file that you locked or any file that you downloaded with the Lock Server Files option checked. You cannot lock a folder.

Note
You can unlock a file that is being edited by another user, but you are strongly recommended not to do this. If you do, Web Publisher continues to list the file as a file that needs to be published even though the pen icon is removed from the Web Publisher window.

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.

To manually lock a file:

    • 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.

Note
Communicator users with the Composer plug-in can also manually lock a server file from the Composer application on their local system by using Lock from the Web Publisher command on the Tools menu.

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.

To unlock a file:

    • 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.

Note
Communicator users with the Composer plug-in can also manually unlock a server file from the Composer application on their local system by using Unlock from the Web Publisher command on the Tools menu.

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.

Copying a File
When you copy a file, you become the owner of the copied file. You can copy locked and unlocked files.

To copy a file:

    • 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

    • 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.

Copying a Folder
When you copy a folder, all the files and folders within it are copied and you become the owner of the new files and folders.

To copy a folder:

    • 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.

Moving Files and Folders
You can move unlocked server files and folders. Moving requests are subject to access control restrictions for the specified folder or file that you wish to move. If you want to prevent other users from moving your folders and files, you can use the access control function to limit the Delete access right to yourself. See Chapter 7, "Controlling Access," for more information about access control.

Moving a File
You can move an unlocked file if you have delete privileges for the file. You cannot move a locked or unpublished file. When you move a file that has no owner, you are assigned as the owner of the file. If the file already has an owner, the ownership is not changed.

To move a file:

    • Select the file in the Web Publisher window.
    • 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

    • 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.

Moving a Folder
You can move a folder if you have read-write privileges for the folder and all the files within it. You cannot move a folder if there is any locked or unpublished file within the folder. When you move a folder and files that are not yet assigned any owner, you are assigned as the owner of the folder and its files. If the folder and files already have an owner, the ownership is not changed.

To move a folder:

    • Select the folder in the Web Publisher window.
    • 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.

Renaming Files and Folders
You can rename unlocked server files and folders. Renaming requests are subject to access control restrictions for the specified folder or file that you wish to rename. If you want to prevent other users from renaming your folders and files, you can use the access control function to limit the Delete access right to yourself. See Chapter 7, "Controlling Access," for more information about access control.

Renaming a File
You can rename an unlocked file within a folder if you have read-write privileges for the file. You cannot rename locked or unpublished files. When you move a file that has no owner, you are assigned as the owner of the file. If the file already has an owner, the ownership is not changed.

To rename a file:

Renaming a Folder
You can rename a folder if you have read-write privileges for the folder and all the files within it. You cannot rename a folder if there is any locked or unpublished file within the folder.When you rename a folder and files that are not yet assigned any owner, you are assigned as the owner of the folder and its files. If the folder and files already have an owner, the ownership is not changed.

To rename a folder:

Deleting Files and Folders
You can delete unlocked files and folders on the server. Once you delete a file, it is no longer searchable. Delete requests are subject to access control restrictions for the specified folder or file that you wish to delete. If you want to prevent other users from deleting your folders and files, you can use the access control function to limit the Delete access right to yourself. See Chapter 5, "Services and Menus," for more information about access control.

You can set a user preference to request confirmation of delete operations. This is the default and is the recommended method. See "User Preferences" for more information.

Deleting a File
You can delete an unlocked file if you have delete permission for the file. You cannot delete locked or unpublished files. Once you delete a file, you can no longer search on its properties or contents.

To delete a file:

    • Select the file in the Web Publisher window.
    • 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

    • Click Delete to delete the file or Cancel to close the window and leave the server file untouched.

Deleting a Folder
You can delete a folder if you have delete permission for the folder and for every file within the folder. You cannot delete a folder if there is any locked or unpublished file within the folder.

To delete a folder:

    • Select the folder in the Web Publisher window.
    • 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.

Note
Your server administrator cannot restore deleted folders. However, when you restore a file that was inside a folder that has also been deleted, Web Publisher recreates the same folder structure for your file as you had before you deleted it. This may mean that one or more folders must be created to replicate the path structure. These folders will have the same names as the deleted folders, but will be empty.

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.

User Name Preference
The User Name Preference dialog box lets you enter a new user name for Web Publisher. Many Web Publisher operations depend on the user's name to identify the owner or lock owner for a file.

You can check a checkbox that allows you to set this name as the default name, which means that Web Publisher does not require you to input your user name each time you launch Web Publisher. If you want to be prompted for a user name whenever you start up Web Publisher, do not check the default name checkbox.

If you leave the user name field blank, you are prompted for user name and password rather than just the password when you execute an operation that requires authorization.

You must use a username that is valid for your server. See your server administrator for more information, if necessary. Actions that require a authorization include editing, uploading, copying, moving, and renaming files as well creating a new folder on the server.

Figure 5.12    The user name preference dialog box

Operations to Confirm
The Operations to Confirm dialog box lets you to direct Web Publisher to ask for confirmation whenever you use the drag-and-drop method to copy or move files or folders, or whenever you delete, lock, or unlock files or folders. Without these options checked, Web Publisher immediately performs the action without giving you a second chance to revisit your decision.

Figure 5.13    The confirm operations dialog box

Directories
The Local Folder Preferences dialog box allows you to set two types of folder preferences: for uploading or downloading files and for storing "in edit" files.

You can set a preference for which local folder is to serve as the source folder for upload operations and as the destination location for downloads. You need to enter the full physical path, For example, C:\Projects\TempDir.

You can also set a preference for which local folder to use for files during editing, that is, as the temporary storage folder for files in an "in edit" state. Unless you are using Netscape Composer to edit your HTML files and you have set your editor preference to edit directly on the server, files being edited are temporarily copied to your local system. Once you publish the file, the temporary "in edit" file is deleted from your local system.

You cannot change your local folder preferences while a file is still in an edit state. You must publish all edited files before you can change a directory preference.

Note
For Windows systems that require 8.3 file notation, you must use pathnames with this notation for your directory preferences. Because it occurs so frequently, Web Publisher handles one case for you automatically: If the folder you want to use for files during editing has Program Files as part of its pathname, Web Publisher translates it to Progra~1 for you.

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.

To close this dialog box, you must click the button in the top left corner. Clicking the Set button does not make the dialog box disappear.

Figure 5.15    The font chooser dialog box

Editors
The Editor Preferences dialog box lists the defined editor applications that have been associated with specific file types. The default is to list the Composer component of Netscape Communicator as the HTML editor of choice.

Figure 5.16    The editor preferences

If you want to associate another editor program with a specific file type, you can use the Set Editor Program dialog box to enter the file extension for the file and indicate the executable program file.

Figure 5.17    The set editor program preferences dialog box


The View Menu
The View menu provides several commands for viewing or redisplaying Web Publisher data. The first command, Properties, displays the Web Publisher Services page, which is the main page for viewing data about your files and folders. From this page, you can check links and view any custom properties that have been defined.

The other View menu commands let you to change the sort sequence for the contents of the window, to reload and refresh the window data, and to show or hide the Web Publisher toolbar.

Properties
To view a file's properties through the Web Publisher Services page, do the following:

Sorting Files and Folders
You can choose to sort the files and folders in various different sort sequences. There are two ways to do this:

The Help Menu
The Help menu has two items to provide assistance for Web Publisher and to provide some basic product information.

Web Publisher Help
You can access the Web Publisher User's Guide to get additional information about how to install the product, to find out more details about the Web Publisher functions and services, and to learn about using text search and access control.

To access the User's Guide, do the following:

About
You can access some basic information about Web Publisher, including the product's current version number, by viewing the About box for the product.

To access the About box, do the following:

 

© Copyright 2022 Sun Microsystems, Inc. Some preexisting portions Copyright 2022 Netscape Communications Corp. All rights reserved.