Forum Moderators: phranque

Message Too Old, No Replies

ColdFusion Query Output

         

kevinj

6:51 pm on Jul 29, 2004 (gmt 0)

10+ Year Member



I have a simple CF verity collection search set up and I'm trying to format the output into two columns and not having much luck with formatting the output display in a table. The way I would like the results to display is as follows from left to right then down to next row:

1. TITLE: "#TITLE" 2. TITLE:"#TITLE#"
LINK: "#LINK#" LINK: "#LINK#"

3. TITLE: "#TITLE" 4. TITLE:"#TITLE#"
LINK: "#LINK#" LINK: "#LINK#"

My CFSEARCH info is

<CF SEARCH
NAME="seiglessearch"
COLLECTION="seiglesearch"
TYPE="Simple"
CRITERIA="#Form.searchsgl#">

Any help on how to format the output table into two columns would be much appreciated.

Thanks,
Kevin

kevinj

7:05 pm on Jul 29, 2004 (gmt 0)

10+ Year Member



Output example got a little garbled. Here it is cleaner:

1. TITLE: "#TITLE"---------------2. TITLE:"#TITLE#"
LINK: "#LINK#"-------------------LINK: "#LINK#"

3. TITLE: "#TITLE"---------------4. TITLE:"#TITLE#"
LINK: "#LINK#"-------------------LINK: "#LINK#"

kevinj

1:56 am on Jul 30, 2004 (gmt 0)

10+ Year Member



Never mind I figured it out. I used the currentrow attribute and if it was divisible by 2 I set it to start a new <tr>.