Search:
Calendar:
| Sun | Mon | Tue | Wed | Thu | Fri | Sat |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 | 31 |
Subscribe:
Archives By Subject:
Adobe (33) [RSS]
AIR (7) [RSS]
Ajax (3) [RSS]
Buzzword (1) [RSS]
CFUG (42) [RSS]
ColdFusion (70) [RSS]
Flash (6) [RSS]
Flex (40) [RSS]
Frameworks (3) [RSS]
Free Software (2) [RSS]
FXUG (22) [RSS]
General (35) [RSS]
JpgMetadataReader (3) [RSS]
jQuery (1) [RSS]
Mac (2) [RSS]
Off Topic (13) [RSS]
OpenSource (14) [RSS]
PaperVision (10) [RSS]
Spry (2) [RSS]
Transfer (1) [RSS]
Tags:
Recent Entries:
Top Posts:
- [17960] Paper Vision 3D Sphere - Carousels on Steroids!
- [9916] Simple Dynamic Cursor Example in Flex2: With source code
- [9782] Simple PaperVision3D Blurring example
- [9624] PaperVision3D/Flex2 Carousel v0.2
- [9569] Simple PaperVision3D Blurring example : source code
- [9486] Saving images from Flex using ColdFusion: Simple Example with source code
- [9458] Carousel v0.2 - source code
- [9182] PaperVision Carousel0.3 - one step closer to the master plan!
- [7817] PaperVision3D is good for cubes! - a "geek" gift
- [6737] Simple Effects on a Form - Flex Example
Recent Comments:
- Getting Red from my color
David said: @Promethe: Thanks for the comment. Jason uses that way too in his example. working with number as n... [More] - Getting Red from my color
Promethe said: guys... seriously: var myColor : uint = 0xef556ef; var myRed : uint = (myColor >> 16) & ... [More] - Getting Red from my color
David said: @Jason: Thanks for the example! I never like working with numbers-to-strings-to-numbers. I'll pull y... [More] - Getting Red from my color
jason olmsted said: There is always more than one way to skin a cat. I threw together a quick class that offers easy to... [More] - Frameworks: Whats good about them, whats bad about them.
Arowolo said: I totally agree with you, and to add to your point, i think it also reduces ones understanding of th... [More]
Top Commenters:
- [8] Campbell
- [8] Ben Nadel
- [6] Steve Bryant
- [6] Mark Flewellen
- [4] barry.b
- [4] Raymond Camden
- [3] John Whish
- [3] Peter Bell
- [2] riabook
- [2] carlos
My Links:
RSS:
Write your own ColdFusion tag
Disclaimer: this is completely un-recommended and don't do this, unless you work on the ColdFusion development team!
...now that's out of the way...
In my previous post I told you about the file that stores all the Tag definitions for CF tags. I was wrong, it stores MOST of them, as Todd Sharp pointed out here on Andy Jarrett's Blog (see comments)
If you check the "WEB-INF\cftags" folder, you will see the ".cfm" files cache,dump,savecontent and trace. I suspect these are the tags missing from that XML file...
If you see Jared's comment on Andy's blog: [quote]... they're technically custom tags that are globally available...[/quote]
Also there is the base "component.cfc" that all CFC's extend by default.
"So, what happens if you add your own '.cfm' file to this dir?" I asked myself...
So I created a "david.cfm" file and add the text "david".
Now I have a <cfdavid> tag! it takes no attributes and outputs "david" to the page.
CFML already has custom tags, and I would STRONGLY SUGGEST using these rather than what I have done just above!
I find it a bit interesting learning a little about how CF works, but I wouldn't suggest playing with the inner workings of CF to much! :-)

1. As Sam pointed out, if you move your app to another server, it's another thing to forget about in the process.
2. If you start messing with the inner workings of ColdFusion, upgrading CF could become a nightmare, because if Adobe decides to more or remove that dir or deal with their tags in a different way any custom tags in there will be lost or become redundant
3. All you are saving yourself by putting tags in there is typing an underscore when you call them. EG: <cfmytag> rather than <cf_mytag>
so while it is interesting, I can see no real reason for using it! :-)