CF10 cannot find my Custom Tag. CFParam WILL have a Hint!
It is a travesty beyond travesty that the cfparam tag does not support a 'hint' attribute.
So I aims to fix that with a custom tag! This is the first time I've messed with custom tags, but so far I cannot get them to work.
I created a file called param.cfm, it merely outputs a cfparam that transposes the provided ATTRIBUTES but allows us to specify a hint attribute on the <cf_param> tag to sate that need.
I placed this file into c:\inetpub\wwwroot\project\custom-tags.
In my application.cfc, it states simply:
<cfset THIS.name = hash( getCurrentTemplatePath() )>
<cfset THIS.customTagPaths = 'c:|inetpub\wwwroot\project\custom-tags'>
<cf_param name="test" type="string" default="foo" hint="YES! WE CAN PUT HINTS ON PARAMS!">
<cfabort>
Well, CF comes back and says:
Expression Exception - in c:/inetpub/wwwroot/project/application.cfc: line 17
Cannot find CFML template for custom tag param.
I did some research and saw that there are supposed to be 4 locations CF will look for custom tags:
- In the same directory as the calling page
- In the directory specified on a per-application basis
- In the ColdFusion CustomTags folder or a subdirectory of it
- In a directory defined in the ColdFusion ACP
Well, I have per-application settings enabled in the CF ACP, and I have both named and defined the custom tags path for this application, yet CF still cannot find it. So what am I doing wrong here?
