
January 18th, 2005, 02:50 PM
|
|
Contributing User
|
|
Join Date: Oct 2004
Posts: 181
Time spent in forums: 2 Days 4 h 23 m 47 sec
Reputation Power: 4
|
|
|
Dynamically pulling the href of a link from the current page
I'm creating Prev/Next buttons for a site. I want to make the code a generic function so it can be added to any page easily. Since the pages requiring Prev and Next buttons may have different URLs, I will need to be able to pull the current URL dynamically. That is, if I'm on news.cfm, my buttons will know to do news.cfm
I've tried getBaseTemplatePath() and getTemplatePath() both of which return the full path C:\ etc. and is not useful as a link. GetTemplatePath() is depreciated. And one or two others I've used don't work.
Is there something in CFML that will do what I want or is there a command that will convert the getTemplatePath() result into a link-friendly line? I've done this a long time ago and for the life of me can't find anything on it.
|