Na, don't give up control to CFTable -- you CAN do this, it is just a bit
trickier.
The following code will start a row for odd-numbered entries and close the
row after even numbered entries. Take a look:
<cfoutput query="qry_list_links">
<cfif currentRow mod 2 is 1> <!--- this is an odd row --->
<tr>
</cfif>
<td><a href="http://#linkSiteURL#" target="_blank">
<font face="Verdana, Arial, Helvetica"
size="2">#linkSiteName#</font></a>
</td>
<cfif currentRow mod 2 is 0> <!--- this is an even row --->
</tr>
</cfif>
</cfoutput>
<!--- if there were an odd number, fill in last column --->
<cfif qry_list_links.recordCount mod 2 is 1>
<td> </td></tr>
</cfif>
-----Original Message-----
From: Chris Martin [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 16, 2001 1:22 PM
To: CF-Talk
Subject: Displaying a recordset as two columns
Hi everyone.
Basically, I have a record set that returns a whole bunch of links, and
spits them out one to a table row, like so:
<cfoutput query="qry_list_links">
<tr>
<td width="25" height="30"> </td>
<td><a href="http://#linkSiteURL#" target="_blank">
<font face="Verdana, Arial, Helvetica"
size="2">#linkSiteName#</font></a>
</td>
</tr>
</cfoutput>
Would it be possible to set it up to display the links side by side, in two
columns?
Something like
<cfoutput query="qry_list_links">
<tr>
<td><a href="http://#linkSiteURL#" target="_blank">
<font face="Verdana, Arial, Helvetica"
size="2">#linkSiteName#</font></a>
</td>
<td><a href="http://#linkSiteURL#" target="_blank">
<font face="Verdana, Arial, Helvetica"
size="2">#linkSiteName#</font></a>
</td>
</tr>
</cfoutput>
This? Or is this something that would best be handled with CFTable?
Much thanks in advance
Chris Martin
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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