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:
AIR (6) [RSS]
Ajax (3) [RSS]
Buzzword (1) [RSS]
CFUG (40) [RSS]
ColdFusion (66) [RSS]
Flash (5) [RSS]
Flex (37) [RSS]
Frameworks (2) [RSS]
Free Software (2) [RSS]
FXUG (21) [RSS]
General (33) [RSS]
JpgMetadataReader (3) [RSS]
jQuery (1) [RSS]
Mac (2) [RSS]
Off Topic (13) [RSS]
OpenSource (13) [RSS]
PaperVision (10) [RSS]
Spry (2) [RSS]
Tags:
Recent Entries:
Top Posts:
- [12228] Paper Vision 3D Sphere - Carousels on Steroids!
- [6320] Simple PaperVision3D Blurring example
- [6317] Carousel v0.2 - source code
- [6314] PaperVision3D/Flex2 Carousel v0.2
- [6276] PaperVision Carousel0.3 - one step closer to the master plan!
- [6201] Saving images from Flex using ColdFusion: Simple Example with source code
- [5439] Simple Dynamic Cursor Example in Flex2: With source code
- [5438] Simple PaperVision3D Blurring example : source code
- [5309] PaperVision3D is good for cubes! - a "geek" gift
- [4515] PaperVision, Flex2 and my daughter all playing together!
Recent Comments:
- Adventures in jQuery
Andrew S. said: @David "...but, I still prefer Flex!" So do I :) [More] - Paper Vision 3D Sphere - Carousels on Steroids!
David said: You can find some source code on the entry: http://www.harrisfamily.n...... [More] - Paper Vision 3D Sphere - Carousels on Steroids!
karen said: hi there, any chance you'll be releasing this source? :D i kinda wanna do something similar ! :) gre... [More] - Saving images from Flex using ColdFusion
Ryan said: Hey, I love your example using the DisplacementMapFilter! If anyone needs to do something similar t... [More] - Paper Vision 3D Sphere - Carousels on Steroids!
Evan said: Now I feel dumb but where is the source. This looks really close to what I want to create and anyth... [More]
Top Commenters:
- [8] Campbell
- [8] Ben Nadel
- [6] Mark Flewellen
- [6] Steve Bryant
- [4] barry.b
- [4] Raymond Camden
- [3] Peter Bell
- [2] Dan Wilson
- [2] carlos
- [2] riabook
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! :-)