I have been trying that but the counter gets set as 8 for every directory 
entry. I'm not sure what I'm doing wrong.
Were exactly should the <CFLOOP go in the below code?


At 12:42 PM 8/12/2001 -0700, you wrote:
>Wrap the code below in a CFLOOP.  Create a counter within the loop and 
>once the counter reaches 8, display the graphic and reset the counter.
>
>---mark
>
>========================================Mark Warrick - Fusioneers.com
>Personal Email: [EMAIL PROTECTED]
>Business Email: [EMAIL PROTECTED]
>Phone: 714-547-5386
>Efax: 801-730-7289
>Personal URL: http://www.warrick.net
>Business URL: http://www.fusioneers.com
>ICQ: 125160 / AIM: markwarric
>========================================
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > Sent: Saturday, August 11, 2001 11:47 AM
> > To: CF-Community
> > Subject: Re: <CFDIRECTORY> Nedd to figure out how to know when the last
> > directory name is listed
> >
> >
> >
> > I have the following code that display directories on my D:\ drive.
> >
> > I need to figure out how to know when the last directory is
> > displayed so I
> > can place a graphic file in front of the directory name
> > but *NOT* on the first directory or other in between.
> >
> > Note that the number of directories can change at any given time
> > so hooking
> > of directory eight is not good enough.
> >
> >
> > Ex.
> >
> > directory 1
> > directory 2
> > directory 3
> > directory 4
> > directory 5
> > directory 6
> > directory 7
> >   (graphic file here) directory 8
> >
> >
> > <CFFORM ACTION="" METHOD="GET" ENABLECAB="Yes" NAME="form1">
> >
> > <cfdirectory action="LIST" directory="d:\" name="dirlist">
> >
> > <cfif ListLen(dir,"\") GT 1>
> >       <cfset updir = ListDeleteAt(dir,ListLen(dir,"\"),"\") & "\">
> > </cfif>
> >
> > <cfoutput query="dirlist">
> >       <cfif type EQ "dir">
> >               <cfif Left(name,1) neq ".">
> >                       &nbsp;&nbsp;&nbsp;
> >                       <a
> > href="#cgi.script_name#?dir=#URLEncodedFormat(dir)##URLEncodedForm
> > at(name)#\"
> > class="dirlinks" alt="#name#">#name#</a>
> >               </cfif>
> >       </cfif>
> > </cfoutput>
> >
> >
> >
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to