154
Developing Web Applications with ColdFusion
Using the ColdFusion Administrator to create a collection
To create a new collection:
1.
Open the ColdFusion Administrator Verity page.
If you checked the option to install the ColdFusion Documentation, the
documentation collection is listed by default. The Verity engine is used to search
our online documents.
2.
In the Add a Collection section, enter a name for the collection.
3.
Enter a path for the location of the new collection.
By default, new collections are added to
\Cfusion\Verity\Collections\
.
4.
If you have an International Language Search Pack installed, you can select a
language for the collection from the drop-down list.
5.
Click Create a new collection, then click Apply.
When the collection is created, the name and full path of the new collection
appear in the Verity Collections list at the top of the page.
You can easily enable access to a collection on the network by creating a local reference
(an alias) for that collection. It only needs to be a valid Verity collection; it doesn’t
matter whether it was created within ColdFusion or another tool.
To add an existing collection:
1.
In the Add a Collection section, enter the collection alias.
2.
Enter the full path to the collection.
3.
Select Language if needed.
4.
Click Map an existing collection.
5.
Click Apply.
If the collection is subsequently moved, the alias path must be updated. The Delete
command, when used on a mapped collection, only deletes the alias.
Creating a collection with the CFCOLLECTION tag
Creating and maintaining collections from a CFML application eliminates the need to
access the ColdFusion Administrator. This can be an advantage when you need to
schedule these tasks or to allow users to perform them without exposing the
Administrator to users.
To create a simple collection form page:
1.
Open a new file in Studio.
2.
Modify the file so that it appears as follows:
<HTML>
Содержание COLDFUSION 4.5-DEVELOPING WEB
Страница 1: ...Allaire Corporation Developing Web Applications with ColdFusion ColdFusion 4 5...
Страница 14: ...xiv Developing Web Applications with ColdFusion...
Страница 26: ...xxvi Developing Web Applications with ColdFusion...
Страница 34: ...8 Developing Web Applications with ColdFusion...
Страница 70: ...44 Developing Web Applications with ColdFusion...
Страница 84: ...58 Developing Web Applications with ColdFusion...
Страница 114: ...88 Developing Web Applications with ColdFusion...
Страница 148: ...122 Developing Web Applications with ColdFusion...
Страница 174: ...148 Developing Web Applications with ColdFusion...
Страница 208: ...182 Developing Web Applications with ColdFusion...
Страница 244: ...218 Developing Web Applications with ColdFusion...
Страница 274: ...248 Developing Web Applications with ColdFusion...
Страница 288: ...262 Developing Web Applications with ColdFusion...
Страница 300: ...274 Developing Web Applications with ColdFusion...
Страница 350: ...324 Developing Web Applications with ColdFusion...
Страница 362: ...336 Developing Web Applications with ColdFusion...