User Guide

cfcollection 85
The ColdFusion MX Administrator Verity > Collections page displays the information that is
returned when you use the
list attribute.
If the Verity Server is not running when the
list action is executed, the tag throws an error.
To determine whether a collection exists, use code, such as the following, to execute a query of
queries:
<cfcollection action="list" name="myCollections" >
<cfquery name="qoq" dbtype="query">
select * from myCollections
where myCollections.name = 'myCollectionName'
</cfquery>
<cfif qoq.recordcount GT 0>
<!--- Collection exists --->
<cfdump var = #qoq#>
</cfif>
To get a result set with values for all the collections that are registered with the Verity server, use
code such as the following:
<cfcollection action="list" name="myCollections">
<cfoutput query="myCollections">
#name#<br>
</cfoutput>
To add content to a collection, use cfindex. To search a collection, use cfsearch.
The language attribute of this tag supports the following options:
LASTMODIFIED The date and time that the collection was last changed.
MAPPED Obsolete
NAME The name of the collection.
ONLINE Obsolete
PATH Absolute path to the collection.
REGISTERED Obsolete
SIZE The size of the collection, expressed in kilobytes.
Asian Language Pack
Japanese Korean Chinese Traditional Chinese
Multilanguage Language Pack
Unicode
Western European Language Pack
Bokmal Finnish Italian Spanish
Danish French Nynorsk Swedish
Dutch German Portuguese
Column Contents