How to include a template from a different directory
Hi,
I have a page navigation menu that I placed in a template file. All the browsing files would then call this template file using cfinclude.
I now want to call this file from a different directory. However, this causes all the url and image links to be wrong because the template file uses relative path off of root directory.
I have looked at using cfmodule, but it seems that I would have the same issues unless I make the paths absolute, which I am trying to avoid.
I also thought of prepending to every link in the template file with a directory prefix variable which I passes from the calling files.
Is there an easy and better way to solve this?
Thanks!
Min
