Is there any way to get a list of files used in building a
single page? What I need is to be able to see what page called the
custom tag from within that custom tag. Using getBaseTemplatePath
doesn't work because it only shows the top level page, not the
actual file that called the custom tag. Take the following
structure for instance:
/webroot/mydir/myfile.cfm
/webroot/mydir/myincludes/includefile.cfm
/webroot/customtags/thecustomtag.cfm
If myfile.cfm cfincludes includedfile.cfm and then
includefile.cfm calls thecustomtag.cfm, thecustomtag.cfm thinks
myfile.cfm called it. Which is wrong, and a bit stupid.
I've tried the back door method:
<cfset objFactory = CreateObject( "java",
"coldfusion.server.ServiceFactory" ) />
<cfset objDebugging = objFactory.GetDebuggingService()
/>
<cfset qEvents = objDebugging.GetDebugger().GetData()
/>
<cfdump var="#qEvents#">
But found out later that this only works with debugging
turned on in CF admin AND no IP restrictions are set (unless the
IPs for the clients are listed there).
This should be a very simple task, one would think. Any
suggestions?