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:
- [17938] Paper Vision 3D Sphere - Carousels on Steroids!
- [9904] Simple Dynamic Cursor Example in Flex2: With source code
- [9773] Simple PaperVision3D Blurring example
- [9614] PaperVision3D/Flex2 Carousel v0.2
- [9552] Simple PaperVision3D Blurring example : source code
- [9479] Saving images from Flex using ColdFusion: Simple Example with source code
- [9453] Carousel v0.2 - source code
- [9176] PaperVision Carousel0.3 - one step closer to the master plan!
- [7811] PaperVision3D is good for cubes! - a "geek" gift
- [6728] 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:
Using the BlogCFC5.5 'render' Folder
Here is an example of how to use the 'org/camden/blog/render/' folder in BlogCFC5.5 (and onwards I hope!)
I have a situation where I wanted to reduce typing for http links, so I thought I would write my own renderer for the <a> tag.
The spec was:
- Ignore fully done <a> tags
eg:
Here are the comments from the top of the CFC on how I wanted it to work:
<---
this function will find and <a></a> tags and render them.
The text in the tag is in this format <a>[URL],[Label],SnapPreview(True|false)]</a>
So to use it, do this:
<a>http://www.someurl.com,click here,true</a>
- will render a link to "www.someurl.com" with the text "click here" with the snapPreview (if you using snap...)
<a>http://www.someurl.com,click here,false</a>
- will render a link to "www.someurl.com" with the text "click here" with and without the snapPreview
<a>http://www.someurl.com,click here</a>
- will render a link to "www.someurl.com" with the text "click here" with the snapPreview (if you use snap...) - eg: third value defaults to true
<a>http://www.someurl.com</a>
- will render a link to "www.someurl.com" with the text "www.someurl.com" with the snapPreview (if you use snap...) - eg: third value defaults to true
--->
So to do this, did I need to edit the "blog.CFC"?
NO
All I did was create a CFC called "a.cfc", add to it a function called "renderDisplay" and add my parsing code to it.
I'll attach the CFC to this entry, and I will be the first to admit that the code in there is not my finest moment (I blame the cold I have at the moment!)
But the main point of this entry is to show the functionaliy in BlogCFC to add your own custom tags!
PS: Thanks to Steve Bryant for help with that majic called "regex"!
PPS: the HyperLinks in the entry are rendered by my custom "<a>" renderer!

I find it great as I keep on coming up with ideas for my blogs that involve custom tags to be rendered!