Note: This is for FarCry v3 which is a bit old now but should work for v5
Sometimes when using FarCry I have a need to find an occurance of a page “type” which sits somewhere above where I currently am in the the navigation hierachy.
Say I want to find the “VehicleType” page (which could be Car or Bike etc) above where I am in the navigation hierachy as listed below (when I’m on the “Models” page):
I want to know whether I’m in the “Car” or “Bike” part of the navigation tree and I want the content object of that page.
There are a couple of ways to do this, using categories (tags) would be one way. Another is to simply look for an occurance of my type (VehicleType) in the tree above the current page you’re on.
The following function will do just that, just pass in the request.navId of the page you’re on (Models), the typename and displayMethod you’re looking for (VehicleType).
For example:
Note that the “nLevel” argument in the function allows you to skip the ancestor nodes you know you’re not interested in such as “Root” and “Home”.
Hope this helps some people.
Posted in ColdFusion, Farcry | No Comments »
I’m a lucky member of the teachers credit union, lucky for many reasons but just one of them is that they offer online statements. Meaning you get no correspondence via traditional mail.

They are also donating $1 into the Teachers Environment Fund for each member who signs up for e-statements.
Ask yourself, do you really need all those paper statements every month? I know I don’t, which is why I’m lucky to have a bank which provides an alternative.
Check if your bank offers the same (or any other institution where you get useless monthly letters) and make the change.
Posted in ColdFusion, Misc | 3 Comments »
Unfortunately WebDU has been and gone, all the good things go by so quickly
It was a fantastic event yet again and a HUGE thank you to Geoff, Julie, Vanessa and all the Daemonites for putting on a spectacular couple of days.
I don’t know what the highlight was, the great speakers/topics or the night of activities (bowling, pool, laser skirmish and drinking…lots of drinking!).
One of the cool things about WebDU is the calibre of speakers it attracts from all over the globe. It was great to meet and chat with people from all walks of life including heavyweights from Adobe. It was fun trying to get Adam Lehman to give me the inside scoop on ColdFusion 9 after he’d had a few beers. Didn’t work though
Can’t wait for next year, if you missed out this time try to make it next time.
Some quick session highlights:
- Mike Downey’s keynote on day 1
- Phil Truesdale’s “Mayo Clinic” case study
- Adam Lehman’s CF performance monitoring
- Thursday night’s activities
- Mike Labriola’s under the hood breakdown when Flex compiles
- Mark Mandel’s Transfer
Congratulations and well done to all of the speakers.
Posted in Misc | No Comments »
Looking forward to another WebDU starting tomorrow in beautiful Sydney.
Geoff, Julie and the rest of the Daemon gang have brought us yet another stella cast of speakers. Judging from the agenda I’m going to have trouble knowing which session to attend, but that’s always a good thing.
Also can’t wait for the first evening party, something different this year to help everyone meet and greet.
I hope to see (and meet) some new faces and hopefully not be too worn out on Friday for day 2
See you all tomorrow!

Posted in Misc | No Comments »
As far back as ColdFusion 6 PreserveSingleQuotes hasn’t worked with array style parameters.
This was even submitted as ColdFusion Bug number 53977 on the CF6 docs, a few years later and we still have no joy for ColdFusion 8
Structures will work but only when you access the value by dot notation, not using array style:
This was annoying today when I wanted to loop over an array of “WHERE” clause arguments passed into a function. I needed to either change the calling code to pass a structure instead, or set the arguments array element to a local variable inside each loop iteration to use inside the preserveSingleQuotes
Hopefully Adobe will fix this small bug in the next (Centaur) release!
Posted in ColdFusion | No Comments »