Chapter 3 Working with Dynamo Web Sites
Working with folders and documents in your Web site
When you create
a Web site, two folders are automatically placed into the Web site:
- Connections The connections folder holds user-defined connections.
You can create new connections from this folder by double-clicking
the Add Connection wizard, which is contained in this folder.
- Main contents folder You specify the name of the main contents folder when
you create your Web site. You should place all the content you wish to
create inside this folder. The main contents folder may contain
the App, Doc, Images, and System folders, depending on the options
you select when creating your Web site. The System folder contains
scripts used for site management purposes. Do not alter or execute
directly scripts contained in the system folder unless you are an
experienced user of PowerDynamo.
Once you start adding content to your Web site,
you may want to create additional folders.
Creating folders
To add a folder to a Web site:
- Use
Sybase Central to connect to a Web site.
- Open the folder within which you
want to create a new folder.
- Double-click Add Folder in the right
pane.
- Enter a name for your folder, and
click Next. Do not use spaces, as not all Web servers and browsers
handle spaces correctly.
- If your Web site has more than one
connection, select the connection for the documents in this folder
to use as a default. For more information about connections, see "Working
with connections".
- Enter an optional description of
the folder, and click Finish.
Moving or copying
folders and documents
To move or copy a folder or document within a Web site:
- From
Sybase Central, open the Web site folders until you see the folder
or document you want to move or copy.
- To move the folder or document, drag
the icon to the desired location. To copy it, press the Ctrl key
while you drag the icon.
Deleting folders and documents
To delete a folder or document from a Web site:
- Use
Sybase Central to open the Web site folders until the folder or document
you want to delete is displayed.
- Right-click the folder or document,
and select Delete from the menu to delete the folder.
WARNING! | Caution Deleting a folder deletes all the
contents of that folder and cannot be undone.
|
Renaming folders and documents
To rename a folder or document:
- Use
Sybase Central to connect to a Web site.
- Open the Web site folders until you
see the folder or document you want to rename.
- Right-click the folder or document
and select Properties from the menu.
- Replace the current name with a new
name, and click OK to make the change.
Linking folders to directories on disk
You can store documents that are part of a
Web site either in a database or as files in a directory tree. While
holding information in a database has many advantages, you may wish
to hold some of the material in your database-based Web site as
files. PowerDynamo allows you to do this using linked
folders. A linked folder is a folder in a database-based
Web site that provides access to files stored in a directory on
a disk.
Linking vs. importing
Linking a folder to a directory leaves
the Web documents stored physically in the file system; it does
not physically import them into the database. Importing a directory
or a set of files physically copies the documents into the database.
To create a linked folder:
-
Use Sybase Central to open the
Web site folders in the left pane until you see the folder where
you want to create the linked folder.
-
Double-click Add Linked Folder in the
right pane.
-
Follow the instructions in the wizard
to create the linked folder.
Linked Folders
You cannot create a linked folder
inside a linked folder.
Linked folders are applicable only to database-based
Web sites.
Working with
linked folders
You should be aware of the following behavior
when working with the contents of a linked folder:
- When you add a folder within a linked folder,
a new subdirectory is made on your disk.
- When you delete a folder within a
linked folder, the corresponding subdirectory is deleted from your
disk.
- When you create or delete a document
(template or script) inside a linked folder, a corresponding file
is created or deleted on your disk.
- If you delete the linked folder itself
from the Web site, the corresponding directory is not deleted on
your disk.
- If you move a document from a linked
folder to an unlinked folder in the Web site, the corresponding
file is deleted from your disk.
- If you move a document or folder
to a linked folder, a corresponding subdirectory or file is created
on your disk.
SQL Remote cannot replicate linked folders
SQL Remote replication technology
replicates database content only. It cannot replicate the files
stored in a linked folder.
Copyright © 1999 Sybase, Inc. All rights reserved.
|
|