you might try checking for the existence of the CALLER scope.

<cfif isdefined("caller") AND isStruct(caller)>
this template was called using CFMODULE
<cfelse>
this template was called using CFINCLUDE
</cfif>

+-----------------------------------------------+
Bryan Love
  Database Analyst
  Macromedia Certified Professional
  Internet Application Developer
TeleCommunication Systems
[EMAIL PROTECTED]
+-----------------------------------------------+

"...'If there must be trouble, let it be in my day, that my child may have
peace'..."
        - Thomas Paine, The American Crisis

"Let's Roll"
        - Todd Beamer, Flight 93



-----Original Message-----
From: Peter Mayer [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 19, 2003 10:29 AM
To: CF-Talk
Subject: Called as module or include?


Hello!

Is there a possibility to get to know if a template is called either via 
cfmodule or cfinclude? I can see the difference between standalone and 
cfinclude/cfmodule by executing a check with GetBaseTemplatePath but no 
difference between the cfmodule and cfinclude methods.

Best regards,

Peter

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. 
http://www.fusionauthority.com/signup.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to