Using The Coldfusion Administrator To Create A Collection; Creating A Collection With The Cfcollection Tag - MACROMEDIA COLDFUSION 4.5-DEVELOPING WEB Develop Manual

Developing web applications with coldfusion
Table of Contents

Advertisement

154

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
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>
Developing Web Applications with ColdFusion
\Cfusion\Verity\Collections\
.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion 4.5

Table of Contents