Save the file as collection_create_action.cfm in the myapps directory under the web root
2
directory
.
In the web browser, enter the following URL to display the form page:
3
http://127.0.0.1/myapps/collection_create_form.cfm
The following figure shows how the output appears:
Enter a collection name; for example, CodeColl.
1
Verify that Create is selected and submit the form.
2
(Optional) In the ColdFusion MX Administrator, reload the Verity Collections page.
3
The name and full path of the new collection appear in the list of Connected Verity Collections.
You successfully created a collection, named CodeColl, that currently has no data. For
information on indexing your collection using CFML, see
cfindex tag" on page
Indexing a collection using the cfindex tag
You can index a collection in CFML using the
ColdFusion MX Administrator. When using this tag, the following attributes correspond to
values entered in the ColdFusion MX Administrator:
•
collection
The name of the collection. If you are indexing an external collection (
), you must also specify the fully qualified path for the collection.
= "Yes"
•
action
(Optional) Can be update (the default action), delete, purge, or refresh.
•
extensions
files if
type="Path".
•
key
(Optional) The path containing the files you are indexing if
•
URLpath
(Optional) The URL path for files if
collection is searched with
returned as the url attribute.
•
recurse
(Optional) Yes or No. Yes specifies, if
path specified in the
•
language
(Optional) The language of the collection. English is the default.
520
Chapter 24: Building a Search Interface
520.
(Optional) The delimited list of file extensions that ColdFusion uses to index
cfsearch
attribute are included in the indexing operation.
key
"Indexing a collection using the
tag, which eliminates the need to use the
cfindex
type="file"
, the pathname is automatically prefixed to filenames and
type = "Path"
external
type="path".
and
. When the
type="path"
, that directories below the
Need help?
Do you have a question about the COLDFUSION MX 61-DEVELOPING COLDFUSION MX and is the answer not in the manual?
Questions and answers