home *** CD-ROM | disk | FTP | other *** search
/ Australian Personal Computer 1999 April / APC443.iso / features / grpware / coldfus / coldfusi.exe / data1.cab / Documentation / snippets / cfdirectory.cfm < prev    next >
Encoding:
Text File  |  1998-10-08  |  682 b   |  28 lines

  1. <!--- This example shows the use of CFDIRECTORY
  2. to display the contents of the snippets directory in
  3. CFDOCS --->
  4. <HTML>
  5. <HEAD>
  6. <TITLE>CFDIRECTORY Example</TITLE>
  7. </HEAD>
  8.  
  9. <BODY>
  10. <H3>CFDIRECTORY Example</H3>
  11.  
  12. <!--- Use CFDIRECTORY to give the contents of the
  13. snippets directory, order by name and size --->
  14.  
  15. <CFDIRECTORY DIRECTORY="#GetDirectoryFromPath(GetTemplatePath())#"
  16.     NAME="myDirectory"
  17.     SORT="name ASC, size DESC">
  18. <!--- Output the contents of the CFDIRECTORY as a CFTABLE --->    
  19. <CFTABLE QUERY="myDirectory" HTMLTABLE COLHEADERS>
  20.     <CFCOL HEADER="NAME:"
  21.             TEXT="#Name#">
  22.     <CFCOL HEADER="SIZE:"
  23.             TEXT="#Size#">
  24. </CFTABLE>
  25.  
  26. </BODY>
  27. </HTML>       
  28.