My bad...
      <cfif NOT currentrow MOD NumRows>
        </td></tr><tr><td>
      </cfif>
should be
      <cfif NOT currentrow MOD NumRows>
        </td><td>
      </cfif>


-----Original Message-----
From: Shawn Ingram [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 15, 2002 12:23 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Can this be done?


That would print left to right (not top to bottom ask desired).  Wouldn't
it?

Try this:

<cfset NumFiles = ....
<cfset NumRows =  NumFiles / NumColumns>  <!--- With appropriate integer
division/modulo adjustments of course --->

<table>
   <tr><td>
   <cfoutput query="queryname">
      <cfif NOT currentrow MOD NumRows>
        </td></tr><tr><td>
      </cfif>
      #Name#<br>
   </cfoutput>
   </td></tr>
</table>

Of course this isn't AUTOMATIC either...


<table>

-----Original Message-----
From: Eli Sanders [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 15, 2002 12:16 PM
To: [EMAIL PROTECTED]
Subject: RE: Can this be done?


Yes...! Code below...

<CFDIRECTORY DIRECTORY="c:" NAME="myDirectory" >
<!--- Output the contents of the CFDIRECTORY as a CFTABLE --->    
<table>
<cfset x = 0>
<cfoutput query="mydirectory">
        <cfif name neq '. ' or name neq '.. '>
        <cfif x eq 0>
        <tr>
        </cfif>
        <cfset x = x + 1>
        <td>#Name#</td>
        <cfif x eq 3>
        </tr>
        <cfset x = 0>
        </cfif>    
        </cfif>
</cfoutput>
</table>

-----Original Message-----
From: phumes1 [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 15, 2002 11:57 AM
To: [EMAIL PROTECTED]
Subject: Re: Can this be done?



Hi,

This might be a crazy question but here it goes.

I'm using <cfdirectory to list files on our server. Some directories can

have a 100+ files in them. Presently I'm displaying the list down the
left 
side of my webpage under each other.

file1.txt
file2.txt
file3.txt
file4.txt
file5.txt
etc...

I was wondering if there is a way automatically using a table to do the 
following and if so, how?


file1.txt   file5.txt   file9.txt     file13.txt   file17.txt
file2.txt   file6.txt   file10.txt   file14.txt   file18.txt
file3.txt   file7.txt   file11.txt   file15.txt   file19.txt
file4.txt   file8.txt   file12.txt   file16.txt   file20.txt



+-----------------------------------------------------------------------
------------+ 

Philip Humeniuk
[EMAIL PROTECTED]
[EMAIL PROTECTED]
+-----------------------------------------------------------------------
-------------+



------------------------------------------------------------------------
-
This email server is running an evaluation copy of the MailShield anti-
spam software. Please contact your email administrator if you have any
questions about this message. MailShield product info:
www.mailshield.com

-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org

-------------------------------------------------------------------------
This email server is running an evaluation copy of the MailShield anti-
spam software. Please contact your email administrator if you have any
questions about this message. MailShield product info: www.mailshield.com

-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org

-------------------------------------------------------------------------
This email server is running an evaluation copy of the MailShield anti-
spam software. Please contact your email administrator if you have any
questions about this message. MailShield product info: www.mailshield.com

-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org

Reply via email to