PDA

View Full Version : Linking an image to a folder


lhill4804
01-21-2010, 08:23 PM
I am new to Dreamweaver and have a minor problem I just can't seem to overcome. I have some images on my page that I want to open the folder that contains all of the images for that 1 . In other words, I would like to link an image to a folder and not to individual files. Am I confusing everyone?

Thanks

domedia
01-21-2010, 08:44 PM
hmm.. do you want a link on a webpage to open up a folder on your local machine?
If so, no, that is not possible for obvious reasons 8)

lhill4804
01-21-2010, 09:21 PM
Thanks for the quick reply. Actually what I am trying to do is I have the web server here at my house and have designed the web site with CorelDraw and saved it as a html so I could do the final tweaks with dreamWeaver. My wife sells Barbie dolls and so I have an image of 1 of the dolls on the web page and I would like to link it to the folder that has all the rest of the images in it. So that when I click on the image on the web page it would open the folder displaying all the rest of the images. I have a site now called sumthinspecl.com (no www) that I did in SharePoint 2007. You can take a look at that to see what I am talking about. On that site I have a text box that says Barbie Catalog that links to the folder with the rest of the images. The problem with SharePoint is that it is not very flexable.

Thanks

domedia
01-21-2010, 10:16 PM
sumthinspecl.com is not working, it just redirect to http://www.sumthinspecl.com/ with the message 'This website is temporarily unavailable, please try again later.'

I dont think you will be able to get much help with a website that's made with CorelDraw here though..

lhill4804
01-21-2010, 10:22 PM
sumthinspecl.com is not working, it just redirect to http://www.sumthinspecl.com/ with the message 'This website is temporarily unavailable, please try again later.'

I dont think you will be able to get much help with a website that's made with CorelDraw here though..

Even tho it was made with CorelDraw, it still opens in Dreamweaver as html code. I can do anything I want in DW, but I just don't understand the link process. I can link to a file, but not to a folder. That's my problem.

For some reason the other site stopped working with the www in front of the url. I will have to check it out.

DWcourse
01-21-2010, 11:37 PM
You can't link to a folder using Dreamweaver or just html. I'm sure there are scripts that will pull the images in a folder into a page for you but that's not the same thing.

domedia
01-21-2010, 11:47 PM
It might be that he is referring to viewing all the files in a web directory if the directory do not have a default index file. Most of the time this 'directory browsing' is turned off on the server though.

lhill4804
01-22-2010, 12:01 AM
It might be that he is referring to viewing all the files in a web directory if the directory do not have a default index file. Most of the time this 'directory browsing' is turned off on the server though.


Thanks guys. I am getting the feeling that I must not be asking the question the right way. Maybe this will make more sense. I have a web server here at my house with a web page I created. It has some images on it that came from a folder on that same server. What I am trying to do is link any 1 of the images back to the folder to open it like a library or catalog for viewing. My biggest problem is my lack of html knowledge. If I use a program like Web Studio and create a web site I can link directly to a folder and it opens up whenever I click on the image on the main page. The problem with Web Studio is that it uses a pirority language and DW can't open it. I also tried 1 of the templates on this site and put my image on the main page and tried to link to the folder where it came from, but it makes me go down to the file level. If I knew where to put the html code in Web Studio into DW I could do that I guess. It's hell not knowing what you are doing.

Thanks

lhill4804
01-22-2010, 02:13 AM
A new development. If I type in the folder as the link and press the F12 key to save the index, when I test it I get an index file with all the images in it. But when I test in live mode it just greys out. Am I getting closer or just fooling myself?

Thanks

DWcourse
01-22-2010, 04:18 AM
You're not getting any closer.

If you create a link to a folder <a href="link to folder">link text</a> some server will give you an index of the folder with links to each file (image or not) within the folder. Other servers will return an error (it depends on the server setup).

If you want to link to a page that displays all the images in a folder you have to build the page (or allow another program like FireWorks build it for you). If you have Fireworks installed, you may be able to use Dreamweaver's menu: Commands>Create Web Photo Album command to do something like what you want. But I'd read up on it before you try it.

lhill4804
01-22-2010, 06:18 AM
I read about that and give it a try in the morning. Thanks for all the help.

lhill4804
01-24-2010, 03:28 AM
After installing Fireworks and creating a Photo Album I get the following results. It created 3 folders in the Barbie folder. An Images, a Thumbnail, and a Pages folder. In addition it created an index.htm file. If I launch the index.htm file it opens a page with the title Barbie at the top with thumbnails of all the images I want under it. If I create a link to this index.htm it still does not open when I launch my web site. Very frustrating.

tux
01-25-2010, 09:05 PM
Rather than trying to link to your folder just build a second page with the images in it.

Here is some simple html code that may help you understand. Two pages, an index page containing an image placeholder which links to a second page that contains the images.

You will have to add the paths to your images and add any extra images.

See if it helps you to understand.

Regards Paul

index.htm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Index</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<a href="images.htm"><img name="image1" src="path to your image1 here" width="150" height="150" alt="image1"></a>
</body>
</html>

images.htm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Images</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<img name="image1" src="path to your image1 here" width="150" height="150" alt="image1">
<img name="image2" src="path to your image2 here" width="150" height="150" alt="image2">
<img name="image3" src="path to your image3 here" width="150" height="150" alt="image3">
<img name="image4" src="path to your image4 here" width="150" height="150" alt="image4">
<img name="image5" src="path to your image5 here" width="150" height="150" alt="image5">
</body>
</html>

Ricky55
01-25-2010, 09:14 PM
YOU CAN'T LINK TO A FOLDER WITH HTML END A STORY!!!

Listen to tux.

lhill4804
01-25-2010, 09:15 PM
Thanks Paul.
My biggest problem is that I am new to DW and don't have much experience with HTML. I am trying to learn tho. Do I just select make a new page in DW and go from there? I didn't think this would turn out to be such a chore as I was using Web Studio which is for dummies like me, but I wanted to build a web site using DW. All the background stuff is done for you with web studio. You just tell where you want to link and it does the rest, but it save in a .OWS format so I can't use it anywhere else.

Thanks for all the hep I have been getting from you guys. Hopefuly I will get the picture soon.

tux
01-25-2010, 09:20 PM
File/New/Basic Page/HTML/Create

This will open up a new page.