4images Forum & Community
4images Issues / Ausgaben => Discussion & Troubleshooting => Topic started by: www.girls-on-bikes.com on June 06, 2003, 09:05:42 AM
-
Hello All,
Is there a root path variable in the form {...}?
-
I think its only {self} and {self_full} avalable, that points to the current document.
also, root path is normaly is just relative, witch is ./
so it doesnt make sence use it in templates as it is, because it would be as root in ./templates/<yourtemplate>/ dir.
-
Perhaps if you explain why you need a root path variable, we can suggest a solution.
-
I actually got things worked out, but for future reference, here is what I wanted to do:
I'm doing the "put the images in the background of the tables" thing, and as far as pointing to the transparent image, I wanted something like:
<img src="{root_path}/transparent.gif">
But now that I think about it, I think all of the pages that would use jpg.html would be accessable from the root install, so this would probably work:
<img src="./transparent.gif">
-
<img src="./transparent.gif">
as far as I tryed on several servers, u dont even need ./
I might be wrong though.
-
What I wasn't sure about is the fact that this was in jpg.html, which isn't located in the root, so it's not in the same directory as transparent.gif, but as you know, jpg.html is used in details.php, which is in the root, so... :)
Just want to try to reduce or eliminate any hardlinks for when I change locations. I'll have to do some trial runs later.
Thanks
-
I think you're better off using this:
{template_url}/images/transparent.gif
And place your gif in the template images directory
-
{template_url}/images/transparent.gif
or even shorter ;)
{template_image_url}/transparent.gif