Jack Andrews
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">C ontact Us</a></li>
Path after template applied: <li><a href="file:///iMac%20Offic e%20HD/%20 ALL%20CLIE NTS/AB%20M OVING/AB%2 0Moving%20 Web%20Site /backup-ab moving.com -2-19-2015 /contact.h tm">Contac t Us</a></li>
A path in the template: <li><a href="../../contact.htm">C
Path after template applied: <li><a href="file:///iMac%20Offic
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.
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?
Weknowjack, have you checked the site definition to see if all of the local and remote paths and addresses are set correctly?
ASKER
Yes, Jason. I am attaching a shot of the settings. I have always done this the same way.
ASKER
Site setup
ASKER
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?
ASKER
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?
Second, what are the remote server settings?
Also, are you uploading through Dreamweaver or through an external FTP program?
ASKER
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.
ASKER
I went ahead and entered the server info and reapplied the template. Nothing improved.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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...
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.