PDA

View Full Version : Questions using dreamweaver to link htm pages.



Matt Boldt
Aug 9th, 2009, 03:08 AM
I'm creating a portfolio of design work, and i need separate folders for artwork, web design, and myspace design, as i will have multiple clients and need different folders for each type of work.

So when i have my main page containing my myspace design work, everything's perfect because myspace.htm is inside the same folder as index.htm. But when i create a folder called myspace, and put another htm page of a recent client inside it, the page no longer works without having to update all the links, which dreamweaver does automatically. But when they're updated, i get these long img src's and what not that go something like file:///C:/owner/mydocuments/web/myspace/myclient.htm

Upon looking looking at websites similar to mine, the URl is their domain/folder/folder/page.htm, and the source code reveals things like <img src="../images/cat.jpg">

How do i create folders to organize work into sections, while still having everything work even when is outside of the root folder?

the website is http://mattboldt.com/test/myspace.htm

Notice myspace.htm works, but when you click on the very first client, all the formatting goes away because the clients page is in a separate folder.

Any help would be great.

tomws
Aug 9th, 2009, 05:31 AM
I've not used Dreamweaver in a couple of years (yuck! bad, bad code). But as I recall, you'll get those screwy C drive paths if you haven't set up your project correctly. In the last version I used, there were some project settings related to remote domain and site root directory, I think. That's how the software knows to build correct paths for the images. I'd bet you left those project settings out completely, or else set them to windows local system paths.

Poke around in your project settings and consult the documentation. Perhaps someone more familiar with that (bad, bad) code writing program can give details relevant for your version (which version is it?).

Matt Boldt
Aug 9th, 2009, 08:07 AM
It's Dreamweaver cs4.

And yeah i'll give a look at the default project folder and everything else.

And what's so bad about using dreamweaver?

I honestly only use it for the small advantages like it finishing closing tags, and being able to preview in a browser so fast.

I never use the design side of the program, it's hardly ever correct.

Thanks!

Apostropartheid
Aug 9th, 2009, 04:14 PM
Most people assume you're using the design side. It is rather an expensive program just for the small advantages, after all.

Matt Boldt
Aug 9th, 2009, 08:53 PM
Well it can also be synced to your ftp server and you can maintain everything there, try that with text pad.

Overall i code everything myself, instead of telling dreamweaver to, so it's no biggie.

Thankyou!

Scriptet
Aug 9th, 2009, 10:31 PM
Hi, when you are linking in Dreamweaver just do it like this:

<link rel="stylesheet" type="text/css" href="styles.css" />

Then if you want to link to this same file from a folder above it you'd use:

<link rel="stylesheet" type="text/css" href="../styles.css" />

../ is used to go backwards from a folder

Alternativley if you want to link up into a folder you simply do:

<link rel="stylesheet" type="text/css" href="/foldername/styles.css" />

Then...

Assuming you have Manage your site in Dreamweaver with the new site thing, whenever you move files in the FILE window the links will update automatically.
So if you start off with these links rather than direct linking to the hard drive everything will update correctly.