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 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.
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. See "Working
with connections".
- Enter an optional description of the
folder, and click Finish.
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.
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! | Deleting a folder deletes all the
contents of that folder and cannot be undone.
|
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
storing information in a database has many advantages, you may want
to store 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 versus 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 cannot replicate the files
stored in a linked folder.
Copyright © 2001 Sybase, Inc. All rights reserved.
|
|