Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
SSgt P #1
Dynamic Images in Nested Output
I found an almost answer in the post titled 'dynamic images with information'
but I'm using a join to get the records and nested <cfoutput> tags to display
it. Here's what I have now <cfset intCols = 4> <cfset intBlanks =
intCols-(rsRaid.recordcount mod intCols)> <cfset strBlank =
'<td>&nbsp;</td>'> <cfif intBlanks eq intCols> <cfset intBlanks = 0>
</cfif> and it's displayed as <table> <cfoutput query='rsRaid'
group='raidID'> <tr> <td>Raid Name</td> </tr> <tr>
<cfoutput> <td><imgsrc='images/#rsRaid.imgThumb#'></td>
<cfif currentrow mod intCols eq 0> </tr><tr>
</cfif> </cfoutput>
<cfoutput>#repeatstring(strBlank, intBlanks)#</cfoutput> </tr>
</cfoutput> </table> I'm getting way too many extra <td>'s inserted, so I know
I need to mod it, if it can be for this example. I think the math gets screwed
up because rsRaid is a join that gets the raid records and matches up the
images for them. Any ideas??? thanks in advance.
SSgt P Guest
-
Extension: Dynamic Images/Advance Random Images
Hi there, I have downloaded 2 extensions: Dynamic Images or/and Advanced Random Images (kaosweaver.com); it seems both are the same and I have... -
Nested Group Output
I am attempting to set up a 3 tier category structure for a product catalogue. i.e there sould be a parent category - Cars, then a subcategory -... -
Using Maxrows with Nested Output
This seems so simple but how does MAXROWS work with nested queries that are grouped? If you apply it at the top level it limits the number of... -
HELP PLEASE: Nested Paths and Dynamic Text
I have really been struggling with this, any ideas would be greatly appreciated.. I have a parent SWF file that loads a child SWF The child... -
spliced images (nested tables vs. rowspan)
What do you mean by splicing? Best regards, Linda Rathgeber ---------------- Victoriana | http://www.projectseven.com/dpacks/vic/index.htm... -
SSgt P #2
Re: Dynamic Images in Nested Output
Okay, figured it out. Here's what I did in case anyone else needs a hand in the
future. <cfset i = 1> <cfset StartNewRow = True> <table> <cfoutput
query='rsRaid' group='raidID'> <tr> <td
colspan='4'>#rsRaid.raidName#</td> </tr> <cfoutput> <cfif
StartNewRow IS True> <tr> </cfif>
<td><imsrc='images/thumb/#rsRaid.imgThumb#'></td> <cfset i = i + 1>
<cfif i LT 5> <cfset StartNewRow = False>
<cfelse> <cfset StartNewRow = True> <cfset i = 1>
</cfif> <cfif StartNewRow IS True> </tr> </cfif>
</cfoutput> <cfset i = 1> </cfoutput> </table> Works like a charm.
SSgt P Guest



Reply With Quote

