ColdFusion Advanced Custom Tag Syntax



Custom tags are a great tool for code reuse and portability. By developing a custom tag you not only make your current project easier but future ones as well. By providing the Developer Exchange, Macromedia provides a space for developers to share custom tags with thousands of other programmers and site builders. ColdFusion allows developers to not only develop custom tags, but to also create tags that can wrap content, exist within other tags, and interact with other tags. This article will deal specifically with the ability to wrap content. As an example, imagine a custom tag that must take a body of text and replace any instance of an e-mail address with a hyperlink. Normally, this isn't a problem if the content comes from a database, as follows:


Title: ColdFusion Advanced Custom Tag Syntax
Submit Date: Wednesday, May 23, 2007
Last viewed at: Wednesday, September 08, 2010
Today Hit: 1
All Time Hit: 524
Reviewed : 0 times
Voted : 0 times
Av. rating :
View tutorial
(0) posts Discuss (0 posts)      

More latest headlines in Cold Fusion
Structures are everywhere in the ColdFusion world. As of ColdFusion 4.5, form, application, session, server, request, and URL variables are stored in structures. Allaire Spectra makes extensive use of structures and associative arrays. But what are they and why should you care?

Macromedia ColdFusion MX includes a built-in web server that supports the Secure Sockets Layer (SSL). SSL is a protocol to encrypt and decrypt page requests and the pages returned by the web server. This article describes how to enable and configure SSL with the built-in web server.

Macromedia ColdFusion MX includes a built-in web server. This article describes how to configure it for use in your application.

One of the most exciting new features of ColdFusion 5.0 is the introduction of the bundled Verity K2 Server. A very common hindrance to scalability of ColdFusion applications has historically been the search facility. K2 eliminates that problem by providing ColdFusion applications with a highly scalable search engine facility based on a TCP/IP client-server architecture. Additionally, Verity K2 Server provides considerable performance improvement over the basic, file-based Verity search functionality available with earlier versions.

A ColdFusion variable is created by assigning a value to it. Most commonly, you create variables by using the CFSet tag. You can also use the CFParam tag and assignment statements in CFScript. Tags that create data objects also create variables. For example, the cfquery tag creates a query object variable.

ColdFusion expressions consist of operands and operators. Constants and variables comprise the operands. Operators are the verbs that act on the operands; functions are a form of operator. This chapter first describes the operands and then describes the operators.

Locking shared scope variables within ColdFusion templates is an often overlooked process that has severe consequences when best practices are not followed. This document will explain why the process of locking shared scope variables is important and the corresponding best practices.


At the Washington D.C. ColdFusion Developer's Conference, the opening day keynote presentation featured a Macromedia ColdFusion Server 5 preview. ColdFusion Product Evangelist Ben Forta explained to the audience how many of version 5's features were inspired directly from feedback from developers.

Custom tags are a great tool for code reuse and portability. By developing a custom tag you not only make your current project easier but future ones as well. By providing the Developer Exchange, Macromedia provides a space for developers to share custom tags with thousands of other programmers and site builders.

No matter how well you build your Web applications, sometimes you will come across scripts that take a long time to process. No matter how much you optimize it, it still takes five, ten, maybe even 15 seconds for the page to display.




Back to article