Hopefully the last question for a while ...
Okay. I'm using a cfm file as a kind of layout template, which I call from another CFM file.
Which works OK. But here's the problem. The images referenced in the template.cfm have to be relative to the calling template. And the calling template may be in any directory in the web app.
Is there a preferred way to make sure that the template.cfm can always reference the images directory, no matter where it is called from?
Thanks once again ...
Okay. I'm using a cfm file as a kind of layout template, which I call from another CFM file.
Code:
<cfset test= "test page"/>
<cfmodule template="templates/template.cfm">
<cfoutput>Hello! #test#</cfoutput>
</cfmodule>
Which works OK. But here's the problem. The images referenced in the template.cfm have to be relative to the calling template. And the calling template may be in any directory in the web app.
Is there a preferred way to make sure that the template.cfm can always reference the images directory, no matter where it is called from?
Thanks once again ...