User Guide

cfcollection 83
With the European Verity Locales language pack installed, the language attribute of this tag
supports the following options:
With the Asian Verity Locales language pack installed, the
language attribute of this tag supports
the following options:
The default location of Verity collections is as follows:
Windows: C:\CFusionMX\verity\collections
Unix system: /opt/coldfusionmx/verity/collections
Example
<!-------------------------------------------------------------------------
Check for server platform and use it’s default Verity Collection directory.
You may need to change the path if you did not install ColdFusion MX in the
default directory.
---------------------------------------------------------------------------
<cfif Find("Windows", Server.OS.Name)>
<cfset collPath = "C:\CFusionMX\Verity\Collections\">
<cfelse>
<cfset collpath = "/opt/coldfusionmx/verity/collections/">
</cfif>
<!--------------------------------------------------------------------
Process form input and do the requested cfcollection operation.
--------------------------------------------------------------------->
<cfif IsDefined("form.CollectionName") AND IsDefined("form.CollectionAction")>
<cfif form.CollectionName is not "">
<cfswitch expression="#FORM.CollectionAction#">
<cfcase value="Create">
<cfcollection action="CREATE" collection="#FORM.CollectionName#"
path="#collPath#">
<h3>Collection created.<br>
Use CFINDEX to populate it.</h3>
<!--- <cfindex action="update" collection="#FORM.CollectionName#" type="path"
key="c:\CFusionMX\wwwroot\tests" extensions="cfm">
---> </cfcase>
<cfcase value="Repair">
<cfcollection action="REPAIR" collection="#FORM.CollectionName#">
<h3>Collection repaired.</h3>
bokmal french norweg
danish german portug
dutch italian portuguese
english nynorsk spanish
finnish norwegian swedish
arabic hungarian russian
czech japanese simplified_chinese
greek korean traditional_chinese
hebrew polish turkish