|
|
|
need help with library items & image map |
| message from symmetrywebdesign on 15 Jul 2004 |
Hello,
I created a library item of an image map and I am confused now about how the
instances of it in my webpages are being handled. The URLs in the original
library item are directed correctly, but the source code on each page reflects
a change to look in the library file for each page for my entire site.
When I test my page on my Apache server it searches for the library folder.
So I even loaded a copy of it there with copies of each page. Then it was so
greedy as to also need the images folder there too, (in the library folder).
My question is this: I want to use a library item for my image map, but am I
stuck with needing to copy everything to the library folder and then upload
that too? That doesn't sound correct, nor practical for server space reasons
alone, never mind the ridiculousness of having library in the address bar as
part of the url line. :)
My Dreamweaver book does not have the answer just the basic library directions.
By the way I attempted to change the code in the webpage itself, as
impractical as that would be for each page, since the idea of library items was
to cut down on page by page work, but I thought I would at least see if it
worked. It didn't affect the situation.
Please help. I am on a deadline. I was hoping starting to use the library
items would be a good new feature for me. I have always done things the old
fashioned (longer) way, and recently use external CSS which is great for some
things and will be wonderful for the rest once I master it, but not yet. :)
I appreciate any help. Thanks in advance.
Lori
|
| Alan replied to symmetrywebdesign on 15 Jul 2004 |
url to the page?
suggestion on probably way to fix it yourself-
open the .lbi file
select each hotspot in turn, and use the "browse to file" icon in prop
inspector to re-make the links. Be sure to use Document Relative linking if
the site is hosted in a subfolder of a domain.
other possible problem- These links are not to other items in the Library
folder are they?
there should be nothing in the Library folder except .lbi files. No images,
no other files at all.
|
| Murray *TMM* replied to Alan on 15 Jul 2004 |
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
ANSWERS
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
"Alan" <dont_mail_me_period@macromedia.com> wrote in message
news:BD1C668C.1A2E6C%dont_mail_me_period@macromedia.com...
|
| Murray *TMM* replied to Alan on 15 Jul 2004 |
Further to Alan's good advice,
there should be no <html>, <head>, or <body> tags, and no CSS style
declarations.
|
| symmetrywebdesign replied to Alan on 15 Jul 2004 |
Thanks for your prompt reply. I re-made the links and it fixed the problem. I
knew it wasn't an acceptable thing and I sure wasn't going to leave it that
way. I thought I was done with programs changing my url src when I left
Netscape Composer back when. LOL. Oh well now that I know that it needs me to
let it pick from a folder, I will let it and we can both be happy. Typing
everything myself is a hard habit to break and all these push buttons and task
bars I am trying to learn are great, but it is taking a while. I have just let
alot of the great features just hang about while I worked merrily away half the
time in code view. :)
other possible problem- These links are
not to other items in the Library
folder are they? <NOPE>
there should be nothing in the Library folder except .lbi files. No images,
no other files at all.
I thought so too that was one of my rantings about this thing that was so
WRONG. LOL. You should have heard me. :)
Have a great day and thanks again, you helped keep me from taking the library
stuff and trashing it and having to start over placing the image map on each
page. Doable, but I have other sites to get done. And these late nights are
too much.
Lori
|
| Alan replied to symmetrywebdesign on 15 Jul 2004 |
i'm going to guess you had assumed dw would insert the code in the library
item "as-is" like it was an SSI maybe?
nope. The links and paths in the library item must be good links, from
where the .lbi file is. Then, when you insert the .lbi into another page,
dw adjusts the paths to suit the location of the file it's used in.
so, all links and paths in library items must start with ../ because they
have to go up out of the Library folder.
|
|