Sure, check the CGI vars, like CGI.CF_TEMPLATE_PATH. If the file doesn't match the current file, it's being run as a CFINCLUDE, not as a direct call.
======================================================================= Raymond Camden, Principal Spectra Compliance Engineer for Macromedia Email : [EMAIL PROTECTED] Yahoo IM : morpheus "My ally is the Force, and a powerful ally it is." - Yoda > -----Original Message----- > From: Haggerty, Michael A. [mailto:[EMAIL PROTECTED]] > Sent: Monday, January 14, 2002 12:55 PM > To: CF-Talk > Subject: General Question > > > Hi; > > I have a question: is it possible to detect whether a CFM > file is CFINCLUDEd > within another file? > > Here is a case where I would want to be able to do that: > let's say I have a > page with some content and it has been indexed through > Verity. There is a > separate layout file that properly displays the content > template. Verity > would index the content of the content file and ignore the > layout file. > > When a user finds a link to the content page in Verity and > clicks on the > link, I would want some way to include the content file > within the layout. > > Is there a way to detect whether or not the content file is > appearing within > the context of the layout file? > > Thanks > Michael Haggerty > ______________________________________________________________________ Get Your Own Dedicated Windows 2000 Server PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER Instant Activation · $99/Month · Free Setup http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists