This is a multi-part message in MIME format.

------=_NextPart_000_023D_01C02967.4AE81D30
Content-Type: text/plain;
        charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

CFINCLUDE problems

First off, you can not have any parameters on a CFINCLUDE.  All variables
will be available to the included page.  Try <CFINCLUDE
TEMPLATE="/acb/webpage.cfm"> and see if that works.

DC

  -----Original Message-----
  From: Gina Shillitani [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, September 28, 2000 15:21
  To: CF-Talk
  Subject: CFINCLUDE problems


  Can you not include files in the following manner? Notes: CF Server has
the
  mapping, so does IIS, and if you view the page I'm trying to include
  directly or link to it, it works fine.

  I am attempting to do this:

  <CFINCLUDE TEMPLATE="/acb/webpage.cfm?WebPage_ID=20&DID=9">

  but when I do this, I get this message:

  Template file not found.
  HTTP/1.0 404 Object Not Found
  Note: If you wish to use an absolute template path (e.g.
  TEMPLATE="/mypath/index.cfm") with CFINCLUDE then you must create a
mapping
  for the path using the ColdFusion Administrator.
  Using relative paths (e.g. TEMPLATE="index.cfm" or
TEMPLATE="../index.cfm")
  does not require the creation of any special mappings. It is therefore
  recommended that you use relative paths with CFINCLUDE whenever possible.

  BUT, if I do this:

  <cfset y="/acb/webpage.cfm?webpage_id=20&did=9">
  <CFOUTPUT><A HREF="#y#">y</A></CFOUTPUT>

  the link works just fine. Problem is, I don't want a link, I want to
include
  it.
  --------------------------------------------------------------------------
----
  Archives: http://www.mail-archive.com/[email protected]/
  To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.


------=_NextPart_000_023D_01C02967.4AE81D30
Content-Type: text/html;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>CFINCLUDE problems</TITLE>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.3018.900" name=3DGENERATOR></HEAD>
<BODY>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN =
class=3D525001416-28092000>First=20
off, you can not have any parameters on a CFINCLUDE.&nbsp; All variables =
will be=20
available to the included page.&nbsp; Try &lt;CFINCLUDE=20
TEMPLATE=3D"/acb/webpage.cfm"&gt; and see if that =
works.</SPAN></FONT></DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN=20
class=3D525001416-28092000></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN=20
class=3D525001416-28092000>DC</SPAN></FONT></DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN=20
class=3D525001416-28092000></SPAN></FONT>&nbsp;</DIV>
<BLOCKQUOTE style=3D"MARGIN-RIGHT: 0px">
  <DIV align=3Dleft class=3DOutlookMessageHeader dir=3Dltr><FONT =
face=3DTahoma=20
  size=3D2>-----Original Message-----<BR><B>From:</B> Gina Shillitani=20
  [mailto:[EMAIL PROTECTED]]<BR><B>Sent:</B> Thursday, =
September 28,=20
  2000 15:21<BR><B>To:</B> CF-Talk<BR><B>Subject:</B> CFINCLUDE=20
  problems<BR><BR></DIV></FONT>
  <P><FONT size=3D2>Can you not include files in the following manner? =
Notes: CF=20
  Server has the</FONT> <BR><FONT size=3D2>mapping, so does IIS, and if =
you view=20
  the page I'm trying to include</FONT> <BR><FONT size=3D2>directly or =
link to it,=20
  it works fine.</FONT> </P>
  <P><FONT size=3D2>I am attempting to do this:</FONT> </P>
  <P><FONT size=3D2>&lt;CFINCLUDE=20
  TEMPLATE=3D"/acb/webpage.cfm?WebPage_ID=3D20&amp;DID=3D9"&gt;</FONT> =
</P>
  <P><FONT size=3D2>but when I do this, I get this message:</FONT> </P>
  <P><FONT size=3D2>Template file not found.</FONT> <BR><FONT =
size=3D2>HTTP/1.0 404=20
  Object Not Found</FONT> <BR><FONT size=3D2>Note: If you wish to use an =
absolute=20
  template path (e.g.</FONT> <BR><FONT =
size=3D2>TEMPLATE=3D"/mypath/index.cfm") with=20
  CFINCLUDE then you must create a mapping</FONT> <BR><FONT size=3D2>for =
the path=20
  using the ColdFusion Administrator. </FONT><BR><FONT size=3D2>Using =
relative=20
  paths (e.g. TEMPLATE=3D"index.cfm" or =
TEMPLATE=3D"../index.cfm")</FONT> <BR><FONT=20
  size=3D2>does not require the creation of any special mappings. It is=20
  therefore</FONT> <BR><FONT size=3D2>recommended that you use relative =
paths with=20
  CFINCLUDE whenever possible.</FONT> </P>
  <P><FONT size=3D2>BUT, if I do this:</FONT> </P>
  <P><FONT size=3D2>&lt;cfset=20
  y=3D"/acb/webpage.cfm?webpage_id=3D20&amp;did=3D9"&gt;</FONT> =
<BR><FONT=20
  size=3D2>&lt;CFOUTPUT&gt;&lt;A =
HREF=3D"#y#"&gt;y&lt;/A&gt;&lt;/CFOUTPUT&gt;</FONT>=20
  </P>
  <P><FONT size=3D2>the link works just fine. Problem is, I don't want a =
link, I=20
  want to include</FONT> <BR><FONT size=3D2>it.</FONT> <BR><FONT=20
  =
size=3D2>----------------------------------------------------------------=
--------------</FONT>=20
  <BR><FONT size=3D2>Archives: <A=20
  href=3D"http://www.mail-archive.com/[email protected]/"=20
  =
target=3D_blank>http://www.mail-archive.com/[email protected]/</A=
></FONT>=20
  <BR><FONT size=3D2>To Unsubscribe visit <A=20
  =
href=3D"http://www.houseoffusion.com/index.cfm?sidebar=3Dlists&amp;body=3D=
lists/cf_talk"=20
  =
target=3D_blank>http://www.houseoffusion.com/index.cfm?sidebar=3Dlists&am=
p;body=3Dlists/cf_talk</A>=20
  or send a message to [EMAIL PROTECTED] with =
'unsubscribe' in=20
  the body.</FONT></P></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_023D_01C02967.4AE81D30--

------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to