David Harris's Technology Blog

ColdFusion, Flex, and other stuff...   (and 357,345 hours, 21 mins in to my plan for global domination)

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:

Enter your email address to subscribe to this blog.

Archives By Subject:

Tags:

action script adobe air ajax cfug coldfusion flash flex frameworks free software fxug general jpgmetadatareader mac off topic opensource papervision spry

Recent Entries:

No recent entries.

Top Posts:

Recent Comments:

Top Commenters:

My Links:

RSS:


BlogCFC5.5 and that 'render' folder

A few days ago I upgraded to BlogCFC5.5.1 from version 5.0
I had done some customization to BlogCFC5.0 to allow me to render my own tags.
For those of you who use BlogCFC, you can surround a blog of text with <code></code> tags so that the text in between will render as code. EG:

<cfset something = somevalue>


I had added the <youTube></youtTube> tag for my You Tube movies and <simpleViewer></simpleViewer> for the SimpleViewer Gallery
To do this in BlogCFC5.0 I had to make changes to the blog.cfc
The problem about this is the fact that the more customization you make to software, the more you stand to loose or re-do when you come to upgrade.
This leads me on to the "render" folder...and why it is cool!

In the "org/camden/blog/render" folder there are some CFC's, and these CFC's have the function "renderDisplay"
If you create a cfc called "dothisPlease", and give it a function "renderDisplay", you can then call that function like this:
<dothisPlease>Some thing here</dothisPlease>

This meant I could use my own tags by creating a "YouTube.cfc" and "SimpleViewer.cfc" to render my custom tags without having to do anything to the "blog.cfc" component, which will (hopefully) future proof me as more upgrades to BlogCFC happen!
Keep up the good work Team BlogCFC!

The only references I could find to this are: There may be more info, as I didn't look very hard!

Related Blog Entries

Comments