dans.blog


The miscellaneous ramblings and thoughts of Dan G. Switzer, II

Associating Parent/Child Custom Tags (UPDATED!)

UPDATE:
Earlier today I posted a solution to this problem, but after reading a comment by Doug Hughes, I've found a better way to solve this problem, so I'm updating the code. This updated code uses the parent tag as an iterator to loop through the results, which gives Mark the output more to what I think he was after.

Mark Drew posted a question on his blog wondering how you might pass data to a custom tag that acts as a loop. In his post, he's trying to get the following code:

<cfimport prefix="cms" taglib="tags">
<cms:text value="bob">
<cms:loop from="1" to="10">
<cms:text value="bob">
</cms:loop>

more…