home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 February / CHIPCD_02_2002.iso / Internet / Macromedia ColdFusion Server 5 / coldfusion-50-win-us.exe / data1.cab / Examples / CFDOCS / snippets / cfdirectory.cfm < prev    next >
Encoding:
Text File  |  2001-06-13  |  746 b   |  30 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. <BASEFONT FACE="Arial, Helvetica" SIZE=2>
  10. <BODY  bgcolor="#FFFFD5">
  11.  
  12. <H3>CFDIRECTORY Example</H3>
  13.  
  14. <!--- Use CFDIRECTORY to give the contents of the
  15. snippets directory, order by name and size --->
  16.  
  17. <CFDIRECTORY DIRECTORY="#GetDirectoryFromPath(GetTemplatePath())#"
  18.     NAME="myDirectory"
  19.     SORT="name ASC, size DESC">
  20. <!--- Output the contents of the CFDIRECTORY as a CFTABLE --->    
  21. <CFTABLE QUERY="myDirectory" HTMLTABLE COLHEADERS>
  22.     <CFCOL HEADER="NAME:"
  23.             TEXT="#Name#">
  24.     <CFCOL HEADER="SIZE:"
  25.             TEXT="#Size#">
  26. </CFTABLE>
  27.  
  28. </BODY>
  29. </HTML>       
  30.