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?
JohnLucaniaAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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">
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.
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)

Acronis True Image 2019 just released!

Create a reliable backup. Make sure you always have dependable copies of your data so you can restore your entire system or individual files.

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">
 
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?
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.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
JohnLucaniaAuthor Commented:
great!!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Servers

From novice to tech pro — start learning today.