Forum Moderators: open
For example. In my template I have
<img src="../test/Templates/new_images/test_e.gif"
But when I go into a page and apply this template the code changes to:
<img src="/test/Templates/new_images/test_e.gif"
So basically its getting rid of the ..
I went to preferences and removed "Code re-writing" but it still does this?
Anyone know why its doing this?
I have done things like add another ../ to see what happens but then it does other screwy things like add /Templates to the code?
For example:
www.example.com/images/ (where I have all my images)
www.example.com/Templates/ (where I have my templates)
When I create the template and save it to the directory file, the image code will look like <img src="../images/test_e.gif">, and that ../ is referencing the fact it needs to go up a level from the Templates directory to find the image directory.
Now if I create a main index file at www.example.com, the image code would be <img src="images/test_e.gif"> since it it doesn't have to go up a directory level to find the images.
The only time I have ever run into problems having to add or remove the "../" is when I have copied from one page, but pasted it into a different directory level (ie. content from [example.com...] but pasted it into [example.com...]
In your case, there seems to be an extra / right before the first directory. <img src="/test/Templates...>. Was that something you added to try and find a solution? I think if you remove the / it will work. Did it view properly in the template mode? Did you try uploading everything up to your site incase it is a weird quirk in your design view?