Results 1 to 2 of 2
-
01-09-2010, 03:59 PM #1
How to I create a dynamic path to use a link embedded in a cfinclude template?
Hi,
I have a template named "getlogin.cfm" which i use at the top of every single one of my site pages using the cfinclude tag. Inside this "getlogin.cfm" template, I have placed a link to get to the main page of my site called "index.cfm" which is in the root folder.
The problem is that I cannot hard code the URL of the link inside the "getlogin.cfm" template because if I called the link from the "getlogin.cfm" template that has been embedded in pages that are stored in different folders it will not path correctly to the index.cfm page, giving me a file not found error.
The question I am asking you kind folks is, how am I able to create a link inside a template which is used in a cfinclude tag that will be able to path correctly no matter where the cfinclude template is used?
-
02-01-2010, 03:43 AM #2
That should only be a problem if you are using relative paths. An absolute path from the root "/" will always work.
Similar Threads
-
Directory submission tips
By eusha in forum DirectoriesReplies: 92Last Post: 05-20-2012, 09:36 PM -
Backlink, grow ur Knowledge!!!
By Oglacs in forum Search Engine OptimizationReplies: 36Last Post: 12-22-2011, 03:57 AM -
104 Ways To Get Backlinks | Mega Backlink Guide
By himoacs in forum Search Engine OptimizationReplies: 21Last Post: 08-26-2008, 05:19 AM -
A Bakers Dozen: Ways to Increase Link Density
By himoacs in forum Search Engine OptimizationReplies: 7Last Post: 07-15-2008, 04:02 AM -
Mega Backlink Guide
By webdigo in forum Search Engine OptimizationReplies: 4Last Post: 07-06-2008, 07:12 PM




Reply With Quote

