Hire Me! I'm currently looking for my next role in developer relations and advocacy. If you've got an open role and think I'd be a fit, please reach out. You can also find me on LinkedIn.

I've updated Galleon ColdFusion Forums again, this time to fix an issue with BlueDragon. Well, not an issue per se, but BlueDragon doesn't support CFCHART. I only used it in the admin, so BD users could simply ignore it, but I knew I'd get a lot of bug reports so I simply fixed it.

Curious to know how I fixed it? I used a technique I used a long time ago when working on the Spectra product. I had a case where for one version of ColdFusion I needed to call some tag, let's say <cfray> and for some higher version of CF, use <cf_rayreplacement>, since the <cfray> was removed.

Well, you can't just do this:

<cfif version gte 5>
<cf_rayreplacement>
<cfelse>
<cfray>
</cfif>

If you do this, ColdFusion (and BlueDragon) notice that you have an invalid tag in the source. Even if never gets called, it won't compile. So to get around this, I simply moved the code to an include:

<cfif version gte 5>
<cf_rayreplacement>
<cfelse>
<cfinclude the bad tag>
</cfif>