I missed the replies as well. What I do when I need to know is simply set
a cfparam in the include file:

<CFPARAM NAME="Included" DEFAULT="0">

and when I include it, I set that variable to 1:

<CFSET Included = 1>
<CFINCLUDE TEMPLATE="page.cfm">

But there has to be a more elegant way...

> Did I miss the resposnes to this yesterday - would be very interested to
> know
>
> > From:       Haggerty, Michael A.
> > 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 ha
ve
> > a
> > page with some content and it has been indexed through Verity. There is
 a
> > separate layout file that properly displays the content template. Verit
y
> > 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 th
e
> > link, I would want some way to include the content file within the layo
ut.
> >
> >
> > 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/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to