Dreamweaver rewrites path in CSS File
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
url(file://///peter_main/wwwroot/netelo/images/content_top.jpg
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
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
url(file://///peter_main/wwwroot/netelo/images/content_top.jpg
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.
Similar Messages
-
Can anyone help on this ? I started developing a web site and for no apparent reason in Preview, all of a sudden, the site displays as if the CSS file is not being used at all. So far I have not been able to find out why this is happening.
I have checked using the HTML file using the w3c validator, nothing apparently wrong. I have visually cecked the css file and can find nothing obviously wrong.
The most likely cause is the HTML which is below and it looks correct.
<head>
<meta charset="utf-8">
<title>BPM Resolution</title>
<link href="/Styles/ThreeCol.css" rel="stylesheet" type="text/css">
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>I think you are right, it is a bad path. But there is more to this than meets the eye. It looks like either I or Dreamweaver have a defect ...... It seems:
The path was correct at one point as the css file was functioning correctly ......
Now the CSS file is linking correctly, exactly the same thing is happening with images ...
Conclusion: For some reason Dreamweaver suddently started applying an incorrect path for css files and images .... Why? Is it a wrong site setting, am I doing something wrong ? What might that be?
All the file locations came from using the browser facility in CSS Designer and in Insert Image.....and now I have discovered the problem has taken on a new form ..... which is:
All the images should correctly in design view
None of the images show in Preview in Browser - and
In case 1 - the the web site banner is in the css header class, the background shows where the image should be ... (Path on header is /Images/BPMResolutionBanner.jpg )
In case 2 -The image is present and there is a small cross icon in place of the image ... (Path in the HTML Imaage element is /Images/PGWeb.jpg)
The Default Folder for Images in Site Manager is C:\Users\Patrick\Documents\Dreamweaver\Websites\BPMRes\Images\
The Site Manager path is set to Site Root
and I have just discovered if I set the Site Path relative to Document, the problem is resolved !!!!! Hooray !!!! -
CSS file name not appearing accurately
Dear Dreamweaver Forum,
To sort of give you a context of what I've been doing, I've been following Garrick Chow's Dreamweaver CS3 tutorials through Lynda.com.
Specifically, I'm currently studying chapter 7 Typography.
I tried on my own to save a CSS style sheet.
It seems no matter what I do I am not able to get the CSS panel in Dreamweaver CS3 to save a style with the name I give it in the Save As dialog box.
Below is a 5-step walkthrough of what I'm talking about with two questions in blue after step 5:
Step 1:
Here I have a situation in which I would like to take the style currently in the CSS Styles panel <style> and turn it into an external style sheet I can use with my other .html pages.
Step 2:
Therefore, I used shift + click and selected all the selectors (or should I call them “rules”?) in the CSS panel.
I then right-clicked and selected “Move to External Style Sheet”. I then get this resulting dialog box:
Step 3:
I want to create a new style sheet and so I click the radio button next to “A new style sheet”:
Step 4:
I navigate to my ch7_typography root folder and, in the “Save As” field I type “styles.css”:
Step 5:
The problem is that after hitting the Save button, Dreamweaver saves the css file not as “styles.css” but as “untitled.css”.
My question is why did it do that?
My other question is how can I get Dreamweaver to save the .css file as “styles.css” or “whatevername.css”
I choose to give to it?
Thanks!This is how I do it.
Hit File > New > CSS.
You now have a blank, untitled CSS page.
In Code View, switch to your HTML page. Scroll down to the CSS rules -- these are between the <style type="text/css> and </style> tags. Highlight and copy your CSS rules (Ctrl+C) without the <style> tags.
Switch to CSS page and hit paste (Ctrl+V).
File > Save As > some-filename.css Done.
See also Link Stylesheet.
http://alt-web.com/DEMOS/DW-Link-Stylesheet.shtml
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
http://alt-web.com/
http://twitter.com/altweb
http://alt-web.blogspot.com -
Dreamweaver CC 2014.1 sharing violation with CSS files
I am getting the following error while working with a CSS file in Dreamweaver:
Encountered a sharing violation while accessing:
c:\<path to file>\css\style.css
I have searched and tried a range of difference fixes - but no fix has worked as yet, and many of the solutions don't apply to my situation. This just keeps occurring when I access certain CSS files.
The CSS files are part of a web app that gets run using a local server - and when the server is running I can save the CSS file a couple of times, then after a few saves (and refreshes of the browser to see my changes) I get this sharing violation and can no longer save changes to the file.
I have installed various locked file inspection apps to find out what is locking the file and to see if I can force it close - but all the apps I have tried report the file as not being used or locked. Therefore none of these apps have enabled me to "unlock" the file to then save changes.
But if I copy and paste the contents into any other editor like Sublime Text 2, Notepad, Notepad++ then I can save the CSS file no worries. When I flick back to Dreamweaver, it prompts me saying "The file has been modified outside Dreamweaver" - so I choose to reload the file and I try and make a change and save it and I am back to encountering a sharing violation again.
If I stop and restart the server (which takes about 2 minutes - so not a viable fix) I can get access to the CSS file in Dreaweaver again, but a few saves and refreshes of the browser and it reports it as locked again. I think Dreamweaver is falsely reporting this violation. Because every other application I have tested (Notepad, Notepad++, Sublime Text 2 - even Microsoft Word!!!) has no issues accessing the file, just Dreamweaver.
Any help would be greatly appreciated.
Thanks
MarkHave you tried changing the DW settings to look like this:
You want to remove the Check in/Check out stuff because it is for people working in groups and making changes independently. Make sure you click on the APPLY button after the changes and perhaps close and restart the DW.
Good luck. -
Dynamic path does not work in Css files
Hi,
I have a css file in which i have used few images, but when i try to make the path dynamic and include that css in my page the image doesn't appear but when i put the complete path in it it works.
It works when used in this way :
.inputrightbg
background-image: url(http://<hostname>:<port>/idc/groups/public/documents/omp_images/input_rightbg.gif); background-repeat: no-repeat; background-
position: right top; float: left; padding: 4px 10px 4px 0px; height: 26px;
Doesn't work when use in this way :
background-image: url(<!--$HttpRelativeWebRoot-->groups/public/documents/omp_images/input_rightbg.gif); background-repeat: no-repeat;
background-position: right top; float: left; padding: 4px 10px 4px 0px; height: 26px;
Thanks,
AbhijitRight, you can't put IdocScript in css.
You can use the Web URL Map though to make urls that are easy to deposit in CSS.
Check these out:
http://www.corecontentonly.com/index.php/2009/10/14/web-url-map-extras/
http://blogs.oracle.com/kyle/2009/09/friendly_urls_for_ucm.html
-Jason
http://www.corecontentonly.com
http://www.redstonecontentsolutions.com -
I have built a css style sheet in Dreamweaver. When I try to attach it to my html website, it prompts me that my "css file appears to be an .html file and cannot attach". I've tried removing the /* */ as suggested by other forums, but this has not resolved the issue. I was using css style sheets with no problem 2 days ago. Now I get that error message. How do I fix this so I can attach my style sheet?
What does the code of the CSS file look like?
An external CSS file needs to be written in CSS only (no html tags like <html>, <body>, <head>, etc ).
It also must have a .css file extension, if yours has a .html extension it won't work. -
TextEdit css files auto open in Dreamweaver all of a sudden - How can I stop this?
I'm on a Macbook Pro, OS X. Whenever I open a TextEdit css file lately, it auto opens in Dreamweaver. I've never used or saved anything to Dreamweaver so I don't know why this is happening. It hadn't in the past. I need to use TextEdit specifically at the moment, to code files for school assignments.
2 Ways to Change the Default Application to Open Files With in Mac OS X
-
Issue with path reference in apex.min.css file using Theme 25
Hi all.
I upgraded recently to Apex 4.2.1.00.08 and my existing applications had been working fine. I then thought I'd changed the theme to Theme 25 as it was a new one available to me. This was fine and the application works well however I wanted to test a change to the css so I copied the apex.min.css file and renamed it as apex.min_copy.css. I made my small change, which was just a change to the background colour of the table in apexir.WORKSHEET. I then uploaded this through the shared components and referenced it in my header using
#WORKSPACE_IMAGES#apex.min_copy.cssI also commented out the referenced to #APEX_CSS# in the header so it would use my uploaded copy and not be overridden.
When I then ran the application again, it prompted me for the xdb username and password. I tracked this down to lines in the css file where the relative path to an image in the file was like ../ws/image_name
For example:
background-image : url(../ws/report_bg.gif);I took these lines out, uploaded again and it was fine and my change was visible, meaning that the #WORKSPACE_IMAGES#apex.min_copy.css was being read correctly. I can also browse the location of these files on the xdb database using a browser connected a system and I can see the files where i expect them to be.What I cannot understand is how other references to images in this css file such as
background : url(../apex/builder/dev-bar.png) 0 0 repeat-x transparent;
background-image : url(../htmldb/builder/builder_find_bg.png);do not cause an issue but the one mentioned earlier(/ws) does
I hope someone has an idea .
Thanks,
Colm DicksonMark,
Modifying the default files is dangerous and ill advised. You could always just add a style sheet (inline or linked) to your application that overrides that one setting while you wait on the permanent fix.
Regards,
Dan
http://danielmcghan.us
http://sourceforge.net/projects/tapigen -
Dreamweaver Extension to view all included CSS files in a document?
Is there such an extension that would allow you to view, via a panel, all inlcuded CSS filed within a document?
It would be so nice to see a nice list of all of your included CSS files, especially when there are several, and also being able to launch them and edit them without having to go into code view within the document, find the reference, and then Ctrl+D to edit the stylesheet. I swear I saw something like this once, but I can't find it anywhere now...Have you looked in the CSS Styles panel? If you have "All" selected, then you can see cach attached CSS file and perofrm any edits you want to and not have to open the files. Also, if you have Dreamweaver CS4, then the Related Files bar lists all related files, including any CSS files and you can select the CSS file name and you can edit the files directly.
While in the CSS Styles panel, if you right click on the selector, or on the properties for a selector, then you can choose Goto Code which will take you to the correct file and the correct line for the code of the specific selector.
Or am I missing something that you're trying to accomplish? -
Help! Sometimes Dreamweaver CS3 can't see my .css file
Once a day or so dreamweaver cs3 can't see my .css file. So
all my files that I am working with turn to poop. To fix I have to
close each file and re-open. Then my .css returns and all my files
are how they should be. Anyone else ever have this problem?That I do not know - I've never looked. From the styles
panel, I do know that it does not completely disapear - it shows
the .css - just all the rules are missing. I will look next time.
Usually only happens when multiple files are open. Thanks -
I use Dreamweaver CS 5.5 at my job. I just built a new website for the company using it and for a while, it was deleting the css file completely while in dreamweaver, but it had the little * next to the title like it hadn't been saved. i would usually try to close it without saving or crashing it which is normally does after this happens. So far, the css files have not been totally deleted...yet. I'm not waiting around for that to happen before I try to fix it. I've searched google and the forums and have found nothing or any related topics. I had my computer completely reformatted and that seemed to have fixed it for a short time. Now I'm on another web project and it's doing it again, but this site is bigger and more important than the last, and I don't have as much time to work on it. Has anyone come across this bug at all? I need to get this fixed ASAP...I would really hate to lose my files. I tend to hit Ctrl+S instinctively these days and i'd hate to do that while it's been deleted. not to mention the downtime of restarting Dreamweaver only to have it do it again 5 minutes later.
Computer specs:
Windows 7 Pro SP1 64-Bit
Dreamweaver CS 5.5
24GB RAM
intel Xeon X5650 @ 2.67GHz/2.66GHz (2 processors - 24 cores)
Nvidia GeForce GTX 570
Please let me know if there are any solutions to this. Thank you!
-TravysHmmmm.... When file content randomly disappears, it's usually a symptom of something much deeper -- like a nasty Trojan/Virus, a failing hard drive, bad CPU or corrupt user account.
You can try the usual DW solutions below, but I think you might want your IT guys/gals to run some diagnostics on your computer.
#1 Ensure your CSS & HTML files contain valid code. Use the W3C tools below.
http://jigsaw.w3.org/css-validator/
http://validator.w3.org/
# 2 When DW starts acting weird, the first thing to try is Deleting Corrupted Cache in DW
http://forums.adobe.com/thread/494811
#3 If that doesn't help, try Restore Preferences
http://helpx.adobe.com/dreamweaver/kb/restore-preferences-dreamweaver-cs4-cs5.html
#4 If all else fails, use the CS Cleaner Tools below followed by a software re-install.
http://helpx.adobe.com/creative-suite/kb/cs5-cleaner-tool-installation-problems.html
Good luck!
Nancy O. -
Css file in dreamweaver configuration folder?
while working with a dreamweaver page im getting messages asking me if I want to save a css file located in my dreamweaver configuration folder.
this is somewhat disconcerting as I have never saved anything to that folder.
Is this issue a problem and if so what can I do to resolve it?
Thank you.I think you can safely ignore this message. I'm not sure why you are getting it, but it refers to a temporary file, perhaps created when you did a browser preview.
-
Dreamweaver CS4 CSS file links updating problem
Hi apologies if this question has already been asked, the
search tool does not seem to be working.
I have recently installed DW CS4. When you open a page all
the related files open too so the CSS linked file also opens
however, if i try to update the CSS file from here when i come to
save, i get a message box asking if i want to 'update links'? If i
say yes it updates all the links in my CSS file from ../images to
the full path of the images and this then creates problems with the
site. If i say no, it then tells me that my CSS file contains an
invalid path and then prompts me to 'update links?' again.
If i open the CSS file separately in DW i dont have any
problems.
This is really annoying me, if anyone can help i would be
grateful!Thanks for your replies. I updated my Nvidia video card driver and I deleted the Cache file per the instructions in the link above. Unfortunately I'm still getting the Lockup.
It locks when I use the CSS panel for a period of time. What's odd is that the CSS panel remains active and I can edit and make changes to the CSS rules. The rest of the interface locks up. The code/design window the menu bar etc. I have to close down DW with the task manger. when I do that I get asked if I want to save the changes to the open files and the changes get saved. But the entire user interface except for the css panel is frozen. Weird.
The link above suggest deleting the entire personal configuration folder and the extension manager folder. this seems pretty sever and then it seems I would have to re-install the extensions that I have and etc. Perhaps that's what I have to do? This regular lockup is a pain. Like I said the rest of my system and other apps (fireworks, Photoshop, etc) are all rock solid. The problem is strictly with DW.
Thanks again for your suggestions. -
Stop Dreamweaver loading scripts/CSS files included in a page
Dreamweaver CC 2014.1 (Mac OS X 10.10, Yosemite) has a big BUG... isn't possibile build with it large/complex websites.
If I have a website with large numbers of css files (or scripts), Dreamweaver takes too much time to load/save a page that included them (the wheel turns indefinitely).
Is it possible to stop Dreamweaver from loading scripts and CSS files included in a page while I'm working on it (even temporarily)?
I know that without this function (load external files) Dreamweaver is absolutely useless, but at the moment I haven't still found another IDE tool and I need to work with speed.
ThanksLive View, Code View or Design View?
Have you validated your code to check for errors?
CSS - http://jigsaw.w3.org/css-validator/
HTML - http://validator.w3.org/
You could comment out your links to external scripts and CSS Files.
<!--this is an html comment
-->
To turn off styles in Design View only, go to View > Style Rendering > untick Display Styles. Or consider using a Design-Time Style Sheet.
Dreamweaver Help | Use Design-Time style sheets
To speed things up a bit, try these tips:
1. Edit -> Preferences -> Code Hints -> Disable description tooltips
2. Edit -> Preferences -> Highlighting -> Untick both Live Data Untranslated and Translated
3. Edit -> Preferences -> Sync Settings -> Untick all in sync settings
Nancy O. -
Dreamweaver doesn't see my .css file, why (screenshot included)?
I get the below pop up, as you can see the file is in the folder, on my drive locally. I tried clicking on the get blue button but nothing happens. Anyone know why this is happening & or what I can do to fix it? thank you, Stacey
Hi Stacey,
please have a look to your source code of your tours.html. You will find, probably, these "///", what means DW thinks that your main.css file is linked outside the local root folder and situated on your hard drive. "///'-type link will not work on the web.
If not, please send a link to your website, no matter how it looks like.
Hans-Günter
Maybe you are looking for
-
Why can't i access the store?
For several weeks I was able to access the iTunes Store through iTunes on my PC and then all of a sudden I can't. Why?
-
So my film is all done, very excited to share it. It's a short thing at about 4:20 minutes long with music with video from several different cameras, 2 types of gopros, and my buddy's nikon DSLR. It plays back fine in final cut but gives me the error
-
Payment document updated after payment run but no check information
Now Folks help out with this one. We have the Payment Run completed and one vendor is missing a check. we look into the account and see that we have a payment document to this account so posting key 25 Vendor, and 50 Bank. but no check information. I
-
Garageband 08' songs not opening correctly in GB 11'
I have multiple songs recorded in Garageband 08' on my iMac that I've dropped into the Dropbox application. However, when I open these songs on my Macbook Air that runs Garageband 11', I get the same error message "Audio file NoEffects#11.aif not fou
-
PDF attachment are corrupted via email.
When I open a PDF attachment via my emails it's corrupted with different colors over the page and I can't read it. Opening the same document from my laptop has no problem. I have also had the attachment resent. My iPad never had this problem until re