Hello,
I am trying to write a super simple custom tag but im running into problems
getting CFQuery information into the custom tag. Is it possible to pass
Query data into a custom tag?
My error is "The QUERY attribute of the tag does not specify the name of an
available query"
Im calling the custom tag like this:
<cf_theS QueryCount=#GetProductlist.recordcount# Rows="3"
QueryName="GetProductList">
Below is the custom tag code.
<!--- Start of Custom Tag --->
<cfset numberOfRows = ceiling(attributes.QueryCount/attributes.Rows)>
<cfset NumOfCol = attributes.Rows>
<cfset BeginRow = "1">
<table width="100" cellpadding="5">
<cfloop index="i" from="1" to="#numberOfRows#">
<tr>
<cfoutput query="#attributes.QueryName#" StartRow="#BeginRow#"
Maxrows="#NumOfCol#">
<td>
<img src="../catImages/#getproductlist.ThumbNail#" border="0"
alt="#getproductlist.ID#">
</td>
</cfoutput>
<cfset BeginRow = BeginRow + NumOfCol>
</tr>
</cfloop>
</table>
______________________________________________________________________
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists