Link to home
Start Free TrialLog in
Avatar of Jack Andrews
Jack AndrewsFlag for United States of America

asked on

Dreamweaver template not applying correct link paths

I have created a template in Dreamweaver CC 2014 Mac and set up the Site to use site root paths. the paths in the template are correct, but when applied to a page, the paths are absolute to the local drive. I tried changing the page the template is applied to but the same problem.

A path in the template: <li><a href="../../contact.htm">Contact Us</a></li>

Path after template applied: <li><a href="file:///iMac%20Office%20HD/%20ALL%20CLIENTS/AB%20MOVING/AB%20Moving%20Web%20Site/backup-abmoving.com-2-19-2015/contact.htm">Contact Us</a></li>
Avatar of Dejan Vasiljevic
Dejan Vasiljevic

Hi weknowjack,

From a href i assume that Your path (from what I can see) is located on Your iMac (so it is local). You need to upload files to the machine which is hosting Your site(all files) an then create a path in template which will use new path (which is located on Your server). You can do it either with FTP from CPanel, or with FileZila or etc.

Thanks,
D.
Avatar of Jack Andrews

ASKER

The files were loaded to the server and that is when I discovered the problem. The files are edited on my local machine as I have always done, and then re-loaded to the server. Unless something with DW has changed, that should work. This appears to be something related to DW on my machine.
Well that is what I've said. If they are loaded to the server, You need to upload page to the server, and change the path to location on server itself.
Avatar of Jason C. Levine
Dejan: No, you shouldn't have to do that.  

Weknowjack, have you checked the site definition to see if all of the local and remote paths and addresses are set correctly?
Yes, Jason. I am attaching a shot of the settings. I have always done this the same way.
Site setup
I attached a file but I don't see it, so let me know if you don't.
No, the attachment isn't making it.  Can you upload it to your server and provide a link if the attachment function here isn't working?
It's there now.
Okay, first off it looks like there are spaces at the start of the path.  Remove those.

Second, what are the remote server settings?

Also, are you uploading through Dreamweaver or through an external FTP program?
External FTP. I don't find any spaces in the paths in the template. The paths start with ../ (dot dot slash). There was one incorrect path and I fixed that. The paths in the page were generated by the template. I have never used the remote server settings.
I went ahead and entered the server info and reapplied the template. Nothing improved.
SOLUTION
Avatar of Jason C. Levine
Jason C. Levine
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Should have done this hours ago.
As I said, the links were linking to local part... That is the problem, and You've needed to change it manually, as I said in the first post...