#CPATH
Syntax
#CPATH(Variable,Query)
Parameters
- Variable - The variable to store the cPath query results in. The variable name should include the preceding dollar sign.
- Query - A string or variable with the cPath query.
Description
Process a cPath query and store the results in a variable, which can iterated over with #LIST.
Related
#LIST is used to iterate through the results.
#CQL and #SQL are similar to #CPATH, but process the corresponding type of query.
Example
#CPATH($Contacts,"FROM Contacts")
#LIST($Contacts)
<p>$FirstName $LastName</p>
#ENDLIST
Result
All Contacts will be retrieved from the repository and listed out in First Name and Last Name format.