Nesting Groups in ColdFusion

I ran into something interesting today that I had not attempted before regarding the group by attribute in a cfoutput statement.  I needed to separate content into different group headings, down to a fourth level.  On a whim I decided to group them in cfoutput tags with the appropriate group by attribute and was pleasntly surprised that I worked like a champ.  Below is a quick example of what I am talking about.  Do remember your query must be sorted correctly (basically the order you need your groupings in).

<code lang="cfm[lines]"><cfoutput group="group1" query="variables.qryData"><br></br>





comments powered by Disqus