> -----Original Message-----
> From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]
> Sent: Monday, August 08, 2005 11:40 AM
> To: CF-Talk
> Subject: Re: Access to Calling Template Information in a CFC?

Yeah - I misrepresented that.

Currently, in a CFC method, "getBaseTemplatePath()" works just fine, but
"getCurrentTemplatePath()" returned the path to the CFC, not the template
running the method.

This makes sense but has one pretty big limitation.

So, say, you're running your CFC method in a custom tag: you can't get the
path to that custom tag unless you pass it into the method (probably using
getCurrentTemplatePath()).

I was hoping to simplify this by allowing the method to take either a path
or a keyword ("current" or "base") and determining those paths on its own.
Right now it either takes a path or uses the Base Template Path by default.

Ah well... Paths.getRelFromWebRoot("Current") might have been nice, but
Paths.getRelFromWebRoot(getCurrentTemplatePath()) works.

Jim Davis








~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:214045
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