Daryl's ColdFusion Primer

[<--Prev] [Next-->]
[Printable Version] [Search: ] [Daryl's TCP/IP Primer] [Daryl's ColdFusion Blog]
ColdFusion Slow?  Find out why with SeeFusion

8. File Library

Abandon lawyers, all ye who enter here!

Here is a collection of tags I wrote (or, with cf_superCache, helped write). Some are LGPL (meaning you can use and distribute the tags with your app, so long as you don't encrypt the source of the custom tag if you distribute it), others are simply free for use/abuse to anyone that has a valid ColdFusion license. Before you may use any of this code, however, you must agree to hold the author(s) harmless for any damages incurred through the use of the code. Use the code here at your own exclusive risk!

That being said, these work pretty well for me, or I wouldn't post them. Please notify me with any bug reports, feature suggestions, or improvements.
General-Purpose ColdFusion
<cf_supercache>
[Download]
High-speed in-memory cache written by several (former) members of Allaire Consulting, including myself.
<cf_xmlParser>
[Download]
[Example]
A set of CF5 functions that will parse simple xml files into ColdFusion structures. A pure ColdFusion XML parser!
<cf_userError>
[Download]
Displays an error message to the user and stops template processing. I prefer this over <cfabort showerror="..."> because cfabort will write the error to the application.log, which I prefer to hold "real" errors.
<cf_troubleshoot>
[Download]
Logs entry and exit (as well as timing) of suspect blocks of code. Useful for troubleshooting suspect 3rd-party calls, such as COM objects or CFX tags. Currently only works with SQL Server datasources. Anyone want/need an Oracle version? Let me know!
<cf_captureOutput>
[Download]
One-line tag to capture output into a variable in CF4.5, similar to the <cfsavecontent> tag included with CF5.
_parameterizeQueries.cfm
[Download]
This will read all CF files in the current directory, and optionally all subdirectories, and give you the option to automagically change variables into <cfqueryparam>-based query parameters. Use with caution! And don't leave it lying around in any publically-accessible directories. If you don't understand why you'd do this, see [my DevCenter article.]
pictures.cfm
[Download]
[Example]
Creates and displays thumbnails of all images in the current directory, and [optionally] all subdirectories. Click on thumbnail for full image. Note the extra work put into munging the directory to prevent abuse. Requires Jukka Manner's cfx_Image tag, available at http://www.kolumbus.fi/jukka.manner/. Demo (2002 Ice Storm) at http://www.darylb.net/pictures/.
Spectra
<cf_structSortLCommonSubkeys>
[Download]
A Spectra tag pair that will sort a structure of objects by multiple values. An interesting example of using recursion with CF custom tags.
Recursive (adj.): see Recursive.
typeDump.cfm
[Download]
A Spectra page that will display the properties and methods of all object types.
objectFixer.cfm
[Download]
A Spectra page that will attempt to "repair" all objects of a given type. Useful for adding properties to all objects of a recently-modified object type.


Next:
Copyright ©2000-2008 Daryl Banttari. See [Disclaimer]. [About Daryl]