The name attribute is simply the name of the query that you use to output the contents 
of the data.

Here's a working example (directly from the CF documentation):

<CFDIRECTORY DIRECTORY="#GetDirectoryFromPath(GetTemplatePath())#"
        NAME="myDirectory"      SORT="name ASC, size DESC">

<!--- Output the contents of the CFDIRECTORY as a CFTABLE --->  
<CFTABLE QUERY="myDirectory" HTMLTABLE COLHEADERS>      <CFCOL HEADER="NAME:"
                        TEXT="<a href=#name#>#Name#</a>">       <CFCOL HEADER="SIZE:"  
                 TEXT="#Size#"></CFTABLE>

--------------------------------------------------------------
Mark Warrick
Phone: (714) 547-5386
Efax.com Fax: (801) 730-7289
Personal Email: [EMAIL PROTECTED]
Personal URL: http://www.warrick.net 
Business Email: [EMAIL PROTECTED]
Business URL: http://www.fusioneers.com
ICQ: 346566
--------------------------------------------------------------


> -----Original Message-----
> From: miles [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 22, 2000 11:21 AM
> To: [EMAIL PROTECTED]
> Subject: <cfdirectory> -- help.
> 
> 
> hi.
> 
> Im new to this list...ive been looking for a list like this for
> ages...obviously I haven't looked too hard otherwise I would've
> found this a while ago!
> 
> Anywho...my issue is this:
> 
> <cfdirectory action="list" directory="c:\somedirectory\" 
> name="??????" sort="name">
> 
> what should go in the name value ?  especially if I want to list 
> the entire
> contents of the directory.
> 
> Miles.
> ------------------------------------------------------------------
> ------------
> Archives: http://www.eGroups.com/list/cf-talk
> To Unsubscribe visit 
> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf
> _talk or send a message to [EMAIL PROTECTED] with 
> 'unsubscribe' in the body.

------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebarRsts&bodyRsts/cf_talk or send a message 
to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to