Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How To Tell CF To Go Up To The Root Automatically

Status
Not open for further replies.

esfinks

Programmer
Feb 28, 2001
7
AE
I know that the '../filename.cfm' means go up one level. But how can i tell coldfusion to go up to the root automatically?
<esfinks></esfinks>
 
Directory references differ slightly depending on the command, but if you're just talking about links or CFINCLUDE try '/index.html' from anywhere.

I always set a variable for the site root, so I can always force it if necessary.

<CFSET root = &quot;
<a href=&quot;#root#/index.cfm&quot;>home</a>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top