Quote:
|
Originally Posted by ghettobert
DW8 even let's you synchronize your local site to your remote site and vice versa. When you decide in a later stadium to make some folder changes and drag some files around, DW automatically can fix the paths for you.
|
I've been using DW since 3 and have been able to do these things since then! Unless I am not understanding exactly what you are talking about ghettobert?!! I could sync files so they are automatically uploaded on change. You could always drag files and DW would always update all the pages for you. Same thing with renaming files. It will even change the refence to them in the form action attribute as well.
A little trick I learned: (And this is only worth using if the site has quite a bit of files, so that you don't have to go into every single file and make the changes. )
Let's say yo uare in a folder that has 20 - 30
(or 300! ) files in it for instance.
Go into the first file and highlight the code that you are going to change.
in this case:
<link href="http://www.site.comcssfile.css" rel="stylesheet" type="text/css">
Then press [Ctrl] + F
This will open up the search and replace dialogue box.
Then in the replace field put in the code to replace this. In this case the *relative* path:
<link href="../css" rel="stylesheet" type="text/css"> For instance
The trick is to use the
Find In drop down and choose folder.. Then select the folder that you want to change the files for.
And there you have it.
ALL the files are updated.
I Use this technique for redesigns too. When I have to put the redesign for testing on the original domain for testing. I put the entire new site in a folder called
newsite.
So all of my
absolute paths become
http://www.site.com/newsite/
when time comes to move the site over to become the new live site, I just go in and search and replace
newsite/ to
nothing (just keep the change to field blank) and it changes every single link, path, whatever, site wide. Works like a charm..
(and, many say to just use
relative paths. When working on a big site, relative paths become very cumbersome and problematic. Many argue with me, but if you notice almost all the big sites like
c|net, etc. They almost always use absolute paths. the reason for this is
subdomains. you have to use absolute paths when working on any site that has many subdomains. If you ever get a site that may possibly start using subdomains in the future, the argument for "
using relative paths in case you switch domains," changes to "
use absolute pathes incase you change to subdomains". Changing a site not using absolute paths when they expand to subdomains is a bear... usually 1,000's pf pages. Aghhhhhhh!!!)
ghettobert is correct, don't get me wrong - this is just a little
...expansion of insight...
--