HighDots Forums  

Templates Problem

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Templates Problem in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Koncentric
 
Posts: n/a

Default Templates Problem - 06-30-2004 , 08:39 PM






Hey All,

I am new to Dreamweaver and am having a problem with templates. I have
created a basic site with a few links and 2 jpg files. I have saved
everything and the template appears fine both in the design view and
when I preview in browser.

However, when I create an HTML page based on the template, and then
try to preview through browser, the links come up but the jpg image
files do not. One appears as a broken link and the other one looks as
though it isn't even there....

Any thoughts would be appreciated.

Thank You!

Reply With Quote
  #2  
Old   
:. Nadia .:
 
Posts: n/a

Default Re: Templates Problem - 06-30-2004 , 09:05 PM






Is dwt file the only file in the Templates folder - it should be. When
you linked to your images in the template file, did you use root or doc
relative paths?

(Standard Murray reply to such issues :-)
Here are five ways to make changes *not* propagate from Template to
child page-

1. Rename the Templates folder
2. Move the Templates folder to some other folder level in the site other
than root level
3. Move a template out of the Templates folder.
4. Make changes to an editable region of the template (which will not
propagate)
5. Corrupt the site cache so that the link between template and child page
is broken

If none of the above work/fix your problem, then either show us a link to
the page, or copy and paste some of your code for us to look at.


Nadia
---------------
:Free Templates !! Dropdown Menu Designs:
http://www.DreamweaverResources.com
:Templates: Free Nav Bar Sets:
:Tutorials : Ecommerce : SEO Articles :
-----------------
: Macromedia (MM) Technotes:
http://www.macromedia.com/support/search/
-----------------


----- Original Message -----
From: "Koncentric" <richard (AT) rotzang (DOT) com>
Newsgroups: macromedia.dreamweaver
Sent: Thursday, July 01, 2004 10:39 AM
Subject: Templates Problem


Quote:
Hey All,

I am new to Dreamweaver and am having a problem with templates. I have
created a basic site with a few links and 2 jpg files. I have saved
everything and the template appears fine both in the design view and
when I preview in browser.

However, when I create an HTML page based on the template, and then
try to preview through browser, the links come up but the jpg image
files do not. One appears as a broken link and the other one looks as
though it isn't even there....

Any thoughts would be appreciated.

Thank You!



Reply With Quote
  #3  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: Templates Problem - 06-30-2004 , 09:06 PM



This is how DMX will work if you are using ROOT RELATIVE links, *and*
temporary files to preview.

Here's an example -

* I create a page with a link to an image -> <img src="/images/foo.gif">
(note that the image link is a root relative link)
* I preview that page with DMX (since I am using temp files, DMX is kind
enough to realize that root relative links won't work in a preview, and so
it converts them to document relative links when it builds the temporary
file for the preview) -> <img src="../images/foo.gif"> (I'm assuming that
your document is one level below the root of the site). In the preview,
this page looks fine because the browser has no trouble with the document
relative link - it knows where the file it just opened is, and can follow
the path to the image).
* I then click on a link in the previewed page to another page that also has
ROOT relative linked images --> <img src="/images/bar.gif"> and suddenly
the image does not load.

Why? Because when you click away from the temp file DMX just built for you,
you have lost the benefit of the automatic conversion that DMX does with
root relative links, and the browser looks for this new image starting from
the root of the hard drive, not the root of your site.

The solution is to not use root relative links, and to change all your
existing ones to document relative.

To read more about this, go here -

http://www.macromedia.com/support/dreamweaver/ts/documents/site_root_rel.htm


--
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
==================

"Koncentric" <richard (AT) rotzang (DOT) com> wrote

Quote:
Hey All,

I am new to Dreamweaver and am having a problem with templates. I have
created a basic site with a few links and 2 jpg files. I have saved
everything and the template appears fine both in the design view and
when I preview in browser.

However, when I create an HTML page based on the template, and then
try to preview through browser, the links come up but the jpg image
files do not. One appears as a broken link and the other one looks as
though it isn't even there....

Any thoughts would be appreciated.

Thank You!



Reply With Quote
  #4  
Old   
:. Nadia .:
 
Posts: n/a

Default Re: Templates Problem - 06-30-2004 , 09:07 PM




"Murray *TMM*" <forums (AT) HAHAgreat-web-sights (DOT) com> wrote

Quote:
Yoo Hoo - Hiya Nadia!
Hey - you back officially yet?
and was it good - the R & R I mean :-)

Nadia




Reply With Quote
  #5  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: Templates Problem - 06-30-2004 , 09:11 PM



Yoo Hoo - Hiya Nadia!

--
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
==================

":. Nadia .:" <nadia@no-junk=dreamweaverresources.com> wrote

Quote:
Is dwt file the only file in the Templates folder - it should be. When
you linked to your images in the template file, did you use root or doc
relative paths?

(Standard Murray reply to such issues :-)
Here are five ways to make changes *not* propagate from Template to
child page-

1. Rename the Templates folder
2. Move the Templates folder to some other folder level in the site other
than root level
3. Move a template out of the Templates folder.
4. Make changes to an editable region of the template (which will not
propagate)
5. Corrupt the site cache so that the link between template and child
page
is broken

If none of the above work/fix your problem, then either show us a link to
the page, or copy and paste some of your code for us to look at.


Nadia
---------------
:Free Templates !! Dropdown Menu Designs:
http://www.DreamweaverResources.com
:Templates: Free Nav Bar Sets:
:Tutorials : Ecommerce : SEO Articles :
-----------------
: Macromedia (MM) Technotes:
http://www.macromedia.com/support/search/
-----------------


----- Original Message -----
From: "Koncentric" <richard (AT) rotzang (DOT) com
Newsgroups: macromedia.dreamweaver
Sent: Thursday, July 01, 2004 10:39 AM
Subject: Templates Problem


Hey All,

I am new to Dreamweaver and am having a problem with templates. I have
created a basic site with a few links and 2 jpg files. I have saved
everything and the template appears fine both in the design view and
when I preview in browser.

However, when I create an HTML page based on the template, and then
try to preview through browser, the links come up but the jpg image
files do not. One appears as a broken link and the other one looks as
though it isn't even there....

Any thoughts would be appreciated.

Thank You!





Reply With Quote
  #6  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: Templates Problem - 06-30-2004 , 09:14 PM



Uhbboy! Had a great time!

But ohmigod it was hot....

Yes, I'm back now - more or less. Parts of my netherness are still
somewhere over the jungle....

--
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
==================

":. Nadia .:" <nadia@no-junk=dreamweaverresources.com> wrote

Quote:
"Murray *TMM*" <forums (AT) HAHAgreat-web-sights (DOT) com> wrote in message
news:cbvobg$plt$1 (AT) forums (DOT) macromedia.com...
Yoo Hoo - Hiya Nadia!

Hey - you back officially yet?
and was it good - the R & R I mean :-)

Nadia





Reply With Quote
  #7  
Old   
:. Nadia .:
 
Posts: n/a

Default Re: Templates Problem - 06-30-2004 , 09:15 PM




"Murray *TMM*" <forums (AT) HAHAgreat-web-sights (DOT) com> wrote

Quote:
Uhbboy! Had a great time!

But ohmigod it was hot....
I loathe the heat - especially when on holidays - No wonder you didn't want
to take those stairs!!

Quote:
Yes, I'm back now - more or less. Parts of my netherness are still
somewhere over the jungle....
LOL - take it easy - don't want you to come down with jungle fever.
Put your feet up, catch up on all the posts on the various ngs you've missed
out on!

Like how we took care of the place while you were gone - we're pretty good
house sitters ain't we ??

Nadia









Reply With Quote
  #8  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: Templates Problem - 06-30-2004 , 09:27 PM



Not bad, but I see alot of unanswered pop-up menu questions. I was counting
on you to patrol these borders! 8)

--
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
==================

":. Nadia .:" <nadia@no-junk=dreamweaverresources.com> wrote

Quote:
"Murray *TMM*" <forums (AT) HAHAgreat-web-sights (DOT) com> wrote in message
news:cbvoii$pqi$1 (AT) forums (DOT) macromedia.com...
Uhbboy! Had a great time!

But ohmigod it was hot....

I loathe the heat - especially when on holidays - No wonder you didn't
want
to take those stairs!!

Yes, I'm back now - more or less. Parts of my netherness are still
somewhere over the jungle....

LOL - take it easy - don't want you to come down with jungle fever.
Put your feet up, catch up on all the posts on the various ngs you've
missed
out on!

Like how we took care of the place while you were gone - we're pretty
good
house sitters ain't we ??

Nadia










Reply With Quote
  #9  
Old   
:. Nadia .:
 
Posts: n/a

Default Re: Templates Problem - 06-30-2004 , 09:42 PM




"Murray *TMM*" <forums (AT) HAHAgreat-web-sights (DOT) com> wrote

Quote:
Not bad, but I see alot of unanswered pop-up menu questions. I was
counting
on you to patrol these borders! 8)

But I did Sir !!
well, as many as I could get to anyways

--
Nadia
---------------
:Free Templates !! Dropdown Menu Designs:
http://www.DreamweaverResources.com
:Templates: Free Nav Bar Sets:
:Tutorials : Ecommerce : SEO Articles :
-----------------






Reply With Quote
  #10  
Old   
Gary White
 
Posts: n/a

Default Re: Templates Problem - 07-01-2004 , 12:52 AM



On 30 Jun 2004 17:39:46 -0700, richard (AT) rotzang (DOT) com (Koncentric) wrote:

Quote:
However, when I create an HTML page based on the template, and then
try to preview through browser, the links come up but the jpg image
files do not. One appears as a broken link and the other one looks as
though it isn't even there....

In addition to the other answers, you will get this type of behavior if
your images were located in the Templates folder. Make sure that you put
NOTHING else in the templates folder except the actual .dwt template
files.


Gary


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.