Tuesday, May 13, 2008

ColdFusion 7 & 8 annoyance

Just a quick post about an annoying "feature" of ColdFusion 7 & 8, and maybe even 6.1. In CF5 and CF6.0 nesting cfoutput tags was forbidden unless you specified a valid Group attribute in the parent cfoutput, not so much in CF7 (and maybe 6.1). Whenever that functionality changed it went fairly undocumented, though there is a comment in livedocs for v7 and a subtle wording change from 6-6.1. So fair warning if your testing environment is ohh lets say 7 but for some backwards reason you have to release code back on CF5 (or 6.0) code might break by this undocumented difference.

There is a subtle wording change from 6-> 6.1 but I do not think that does this, major, change justice:

Live Docs v6:

To nest cfoutput blocks, you must specify the group and query attributes at the top-most level, and the group attribute for each inner block except the innermost cfoutput block.

Live Docs 6.1:
If you nest cfoutput blocks that process a query, you specify the query and group attributes at the top-most level; you can specify a group attribute for each inner block except the innermost cfoutput block.


Nothing in the Change history...annoying.

No comments: