Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
A demonstration of looping custom tags in ColdFusion. Part 1: view.cfm (http://bit.ly/T5ikmR)
<!--- view.cfm --->
<cfimport taglib="/shared/CF/other/customTags/looping" prefix="ui">
<cfoutput>
<ui:table data="#q#" headers="true" columnnames="id,english,maori" border="2" cellpadding="2" cellspacing="2">
<tr><td>#id#</td><td>#english#</td><td>#maori#</td></tr>
</ui:table>
<hr />
<ui:table data="#a#" headers="false" columnnames="id,english,maori" border="2" cellpadding="2" cellspacing="2">
<tr><td>#id#</td><td>#maori#</td><td>#english#</td></tr>
</ui:table>
<hr />
<ui:table data="#x#" headers="false" columnnames="maori,english,id" border="2" cellpadding="2" cellspacing="2">
<tr><td>#maori#</td><td>#english#</td><td>#id#</td></tr>
</ui:table>
<hr />
</cfoutput>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment