• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1963
  • Last Modified:

Could not find the included template

Could not find the included template \Inetpub\wwwroot\HumanResources.  
 
The error occurred in D:\Inetpub\wwwroot\ManagersCornerTest\SupervisorsCornerMain.cfm: line 3
 
1 : <cfinclude template="SupervisorsCornerHead.cfm">
2 : <!---<cfinclude template="http://swintranet1/HRHome/">--->
3 : <cfinclude template="\Inetpub\wwwroot\HumanResources">

How do you resolve this?
0
JohnLucania
Asked:
JohnLucania
3 Solutions
 
SidFishesCommented:
includes should be in relative and not absolute format (and you're missing an extension?)


<cfinclude template="../HumanResources.cfm">
or
<cfinclude template="HumanResources.cfm">
0
 
JohnLucaniaAuthor Commented:
oops...

it should have been <cfinclude template="../HumanResources/index.htm">

'\\SWINTRANET1\HRINTRANET$\index.htm'  (FrontPage), which is the same as '../HumanResources/index.htm'
'\\SWINTRANET1\HRINTRANET$\index.htm'  displays every gif and links,
but with <cfinclude template="../HumanResources/index.htm"> does not disply gif and links when clicked.
0
 
SidFishesCommented:
hmmm...
try

<cfinclude template="../hrintranet$/HumanResources/index.htm">
or
<cfinclude template="hrintranet$/HumanResources/index.htm">

you clue is what you can browse to using the browser - minus the website url

you can also use the fully qualified url

<cfinclude template="http://swintranet/hrintranet$/HumanResources/index.htm">

(if that's the correct url)

0
Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

 
JohnLucaniaAuthor Commented:
I am getting:

The filename, directory name, or volume label syntax is incorrect  
 
 
The error occurred in D:\Inetpub\wwwroot\ManagersCornerTest\SupervisorsCornerMain.cfm: line 3
 
1 : <cfinclude template="SupervisorsCornerHead.cfm">
2 : <!---<cfinclude template="http://swintranet1/HRHome/">--->
3 : <cfinclude template="http://Swintranet1/HumanResources/Index.htm">
 
0
 
JeffHowdenCommented:
The template attribute is the path on the server to the file.  It cannot be a URL.  So, where is this HumanResources directory in relation to the SupervisorsCornerMain.cfm file?
0
 
beenish_anwarCommented:
Try to use it

Problem:

<cfinclude template="\Inetpub\wwwroot\HumanResources">

Solution:

you could use
<cfinclude template=ExpandPath( "/HumanResources.cfm")>
<cfinclude template=ExpandPath( "HumanResources.cfm")>
<cfinclude template=ExpandPath( "HumanResources/HumanResources.cfm")>
<cfinclude template=ExpandPath( "/HumanResources/HumanResources.cfm")>
<cfinclude template=ExpandPath( "../../HumanResources.cfm")>

its will give you the relative directory.

0
 
JohnLucaniaAuthor Commented:
great!!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now