4 Replies Latest reply: May 2, 2009 1:58 PM by dragsternj RSS

    Dreamweaver rewrites path in CSS File

    dragsternj Community Member

      hi

       

      we are using 2 DW cs4 versions here over the network. When the css file is edited on the second machine it rewrites the path to the images

      from  ../images/content_top.jpg  to

       

       

      and so on in the css file.

       

      the file can than not be saved on the machine its edited on because the css file contains invalid characters ???

       

      anyone has seen this and has a fix ?

       

      Thanks

        • 1. Re: Dreamweaver rewrites path in CSS File
          MurraySummers CommunityMVP

          dragsternj wrote:

           

          hi

           

          we are using 2 DW cs4 versions here over the network.

           

          When you say this, do you mean that you are both working on the same local site, which is actually on a remote, shared network drive?

           

          from  ../images/content_top.jpg  to

           

           

          This is typically what happens when DW thinks that you are either saving the current file outside of the local root folder, or when you are linking to a file that is outside of the local root folder.  What does the site definition for this site look like from each of the two computers (with regard to the path to the local root folder)?  And is that a space between "peter" and "main"?

           

          the file can than not be saved on the machine its edited on because the css file contains invalid characters ???

           

          anyone has seen this and has a fix ?

           

          Huh?  This is an error you are getting from DW?  We'd need to see the file.  Can you post a link to the page, please.

          • 2. Re: Dreamweaver rewrites path in CSS File
            dragsternj Community Member

            Hi Murray

             

            I am running IIS 7 on my machine which serves the files

            i am connecting to the pages on my local drive within the wwwroot folder,

            the other PC connects over the network to the wwwroot folder on my local drive.

             

             

             

            We are doing this since Ultradev. I don't think i ever had these issues before.

             

             

            as soon as we save on the remote machine we get the erro massage about the invalid characters

             

            and the filepath is changed  to this  background-image: url(file://///peter_main/wwwroot/netelo/images/bg_tile.jpg)

             

            The website/files are in its early stages and i have no live examples but will provide a screenshot of the error message if its helpful.

             

            Pete

            • 3. Re: Dreamweaver rewrites path in CSS File
              MurraySummers CommunityMVP

              Screenshots don't help.  The only way to diagnose something like this is to see the actual code.

               

              Is your colleague using a mapped drive for your local drive, or are they coming in via a network name?  If the latter, try the former.

               

              I share my files around my net just the way you are, but in my case, it's always via a mapped drive letter, not a computer name.  I have never had this kind of problem - and I'm pretty sure that it's happening to you because of the way your colleague is getting to the drive.

              • 4. Re: Dreamweaver rewrites path in CSS File
                dragsternj Community Member

                I "ivestigated" this a little further

                 

                it not happens on one site definition, but all. i tried mapping the drive to a driveletter, same result.

                 

                dreamweaver cs4 changes the path to all attachments  in the stylesheet from

                 

                #header {
                    height: 128px;
                    width: 890px;
                    margin-right: auto;
                    margin-left: auto;
                    background-image: url(images/header.gif);

                 


                #header {
                    height: 128px;
                    width: 890px;
                    margin-right: auto;
                    margin-left: auto;
                    background-image: url(file://///peter_main/wwwroot/doorhardware/images/header.gif);

                 

                upon saving i get the attached error message

                 

                 

                This only happens if i save the file css from within the htnl design view. If i make a change to the css file and i save the css file alone it doesn't rewrite the code. If i make a change to the css file from within the css inspector and save the html page without saving the css file first, the code will be rewritten to above.

                 

                 

                i tried the same site definitions in Dreamweaver CS3 and there is no error  everythings fine. No path changed if changes made to the css file.

                Looks like a bug.