That requires a little qualification... It depends on your definition of "the calling template"... If by "calling template" you mean, the page in the address bar of the user's browser, then yes. If by "calling template" you mean the template containing the invocation of the CFC method, then no... at least not in most cases -- it could be, but then that instance of the method call wouldn't be within fusebox.
> If that is the file calling it yes. > Russ Michaels > -----Original Message----- > From: Phill B [mailto:[EMAIL PROTECTED] > Sent: 28 July 2005 16:10 > To: CF-Talk > Subject: Re: Does a CFC know.... > So to make sure I got this right. This will return the > base file calling the > CFC. So if I use fusebax it will return d:/www/index.cfm ? > On 7/28/05, [EMAIL PROTECTED] > <[EMAIL PROTECTED]> wrote: >> I think GetBaseTemplatePath() would give you the calling >> template filename > and if you want just the filename (not the whole path) do > GetFileFromPath(GetBaseTemplatePath()). >> >> Dave >> >> -----Original Message----- >> From: S. Isaac Dealey [mailto:[EMAIL PROTECTED] >> Sent: Thursday, July 28, 2005 11:51 AM >> To: CF-Talk >> Subject: Re: Does a CFC know.... >> >> >> > Does a CFC know the name of the page that is calling >> > it? >> > I've never >> > tried to figure this out before so any help would be >> > appreciated. >> >> Try getBaseTagList() >> 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:213120 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

