Ten ColdFusion 8 One-Liners
Whether you are spending time in a bar, chatting with friends or a programming language its always handy to have some good one liners. Here, in no particular order, are ten ColdFusion 8 one-liners:
1. Convert an image
ColdFusion converts an image based on the file extension in the source and destination attributes.
2. Combine PDFs
Provide a list of pdfs in the source attribute and they will be merged into one pdf.
3. Create a structure
I love this new feature!
4. Create an array
Likewise
5. Loop over an array
Each item of the array gets assigned to the variable in index.
6. Loop over a file line by line
Each line of the file gets assigned to the variable in index. Even better ColdFusion reads the file line by line and does not put the file in memory. CF can now work with huge log files efficiently.
7. Add a RichTextArea
This will show just the basic toolset, replace that with Default, to see all the options. (Underneath this is FCKEditor)

8. Add a DateField
Produces a input box with a calendar icon and a completely html/JavaScript calendar.
9. Add a ColdFusion Mapping
Within Application.cfc this will add a completely dynamic mapping. I've blogged about this before.
10. Add a Custom Tag Path
Ditto the above for a custom tag path.

There are no comments for this entry.
Add Comment Subscribe to Comments