Your CFC should probably be told what its template is, instead of reaching "outside" of itself to find out - maybe look into having whatever is using the CFC call a method like setCallingTemplate(getBaseTemplatePath()).
-Joe On 7/28/05, Phill B <[EMAIL PROTECTED]> wrote: > 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 > > > > > > > > > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:213116 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=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54