Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

linking images 1

Status
Not open for further replies.

niblet

Programmer
Aug 7, 2001
30
US
I have designed a site in fireworks and created all my slices there. I exported the image to .htm using the export function of fireworks. I made a template (.dwt) of that file in fireworks. My directory structure looks like this

c:\mysite\docs\*.html
c:\mysite\images\*.jpg, *.gif etc.
c:\mysite\templates\*.dwt

the links in the .dwt are relative to document so they are like this

<td rowspan=&quot;5&quot;><img name=&quot;software_r3_c3&quot;
&quot;../images/software_r3_c3.jpg&quot; width=&quot;14&quot; height=&quot;435&quot; border=&quot;0&quot;></td>

so the relative relationship between the template and the docs made from the template is identical, one step up to parent and then down to images. But the files created from template can not find the images. If I type in the absolute path c:\mysite\images\softwre_r3_c3, then it finds it just fine, but that will not be practical to link everything on the site that way for obvious reasons when the site is posted. Root relative paths pose the same problem as doc relative....

any thoughts ? anyone ??
I appreciate the help....

 
Hello niblet!

First of all - nice explanation of the problem!

What you should do first - find where the problem is.
Open your page in browser, right-click on the not showing image, select Properties, and there you'll find a full path of your image. Analyze the path and you'll probably find the mistake there.
Your images probably have one unnecessary step up in their pathes.

Good Luck!
 
that was a perfect trouble shooting tip !! My path in the browser was for some reason c:\images not c:\mysite\images, I'm not altoghether sure why that was in the first place but ... I re-exported the html from fireworks and re-created the templates, let dreamweaver update the docs created from orginal template and it all seems to work now ... though its a head scratcher because the html looks the same &quot;../images/ but its working and I'm grateful ... and I learned something new ...

thanx so much :)

niblet
 
Hello niblet!

I'm glad that everything is fine now! If you have other difficulties don't hesitate to ask!

Good Luck!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top