> Is it sending back the base template path instead of the
> current template path of code provided?

No, everything is working exactly as the documentation says its
supposed to... The problem is that we need something that according to
the documentation I don't believe CF exposes...

Base template c:\the\site\index.cfm
  |
  --> cfinclude - c:\the\site\somethingelse.cfm
      |
      --> Custom Tag c:\CFusionMX\CustomTags\customcode.cfm

We can get c:\the\site\index.cfm from getBaseTemplatePath() and we can
get the custom tag path within the custom tag using
getCurrentTemplatePath(), but in many cases, neither of them are what
we need. What we need is the path from the included template
c:\the\site\somethingelse.cfm accessible within the custom tag...
Right now the custom tag has this:

<cfparam name="attributes.path" type="string"
default="#getBaseTemplatePath()#">

Which works fine as long as the custom tag is called from the base
template... However, if we call the custom tag from another template
-- an include or another custom tag, then the only way we've been able
to get that information is to explicitly pass it from the calling
template using

<cf_customcode path="#getCurrentTemplatePath()#">

in spite of the fact that that attribute will never -EVER- change, and
that CF must have that information once execution enters the custom
tag, it's just not exposed in a documented function. It would be
really nice to not be required to copy-paste (or retype) that same
string path="#getCurrentTemplatePath()#" in 50% of the calls to this
tag, since it's not going to change, and it doesn't help us in any way
to have it there.


s. isaac dealey     954.522.6080
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://www.fusiontap.com
http://coldfusion.sys-con.com/author/4806Dealey.htm


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:217282
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to