HighDots Forums  

paths in templates and documents

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss paths in templates and documents in the Macromedia Dreamweaver forum.



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

Default paths in templates and documents - 10-24-2005 , 10:45 AM






Am a newcomer to webdesign and DM.
Have based the pages on my new site on a single template and have just noticed
a strange thing. If a path appears in the template, when it appears on the page
it is different, e.g:

In the template:

<li><a
href="../Shop/CatecheticsPamphlets.htm">Catechetics</a></li>
<li><a
href="../Shop/Doctrine%20Pamphlets.htm">Doctrine</a></li>
<li><a href="../Shop/MoralAndSocialPamphlets.htm">Moral &
Social</a></li>
<li><a
href="../Shop/SacramentsPamphlets.htm">Sacraments</a></li>
<li><a href="../Shop/SciencePamphlets.htm">Science &
Religion</a></li>

In the page, based on the template:


<li><a
href="../../../Shop/CatecheticsPamphlets.htm">Catechetics</a></li>
<li><a
href="../../../Shop/Doctrine%20Pamphlets.htm">Doctrine</a></li>
<li><a
href="../../../Shop/MoralAndSocialPamphlets.htm">Moral & Social</a></li>
<li><a
href="../../../Shop/SacramentsPamphlets.htm">Sacraments</a></li>
<li><a href="../../../Shop/SciencePamphlets.htm">Science &
Religion</a></li>

Why have the additional ../../ 's appeared?
I have altered the template and then applied it to all the pages on the site
but the pages do not alter. The page still appears to behave quite normally.

Would value anyone's comments.



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

Default Re: paths in templates and documents - 10-24-2005 , 10:57 AM






Quote:
Why have the additional ../../ 's appeared?
Because DW is managing the link to the file based on where you have saved
it.

href="../../../Shop/CatecheticsPamphlets.htm">Catechetics</a>

That path says to get from the current page to the page being linked, go up
3 folder levels, and then look for "CatecheticsPamphlets.htm". If that's
not the correct location of the files, then you have a problem with the way
you have defined your root folder in DW.


--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
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
==================


"BrianOG" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Am a newcomer to webdesign and DM.
Have based the pages on my new site on a single template and have just
noticed
a strange thing. If a path appears in the template, when it appears on the
page
it is different, e.g:

In the template:

li><a
href="../Shop/CatecheticsPamphlets.htm">Catechetics</a></li
li><a
href="../Shop/Doctrine%20Pamphlets.htm">Doctrine</a></li
li><a
href="../Shop/MoralAndSocialPamphlets.htm">Moral &
Social</a></li
li><a
href="../Shop/SacramentsPamphlets.htm">Sacraments</a></li
li><a href="../Shop/SciencePamphlets.htm">Science &
Religion</a></li

In the page, based on the template:


li><a
href="../../../Shop/CatecheticsPamphlets.htm">Catechetics</a></li
li><a
href="../../../Shop/Doctrine%20Pamphlets.htm">Doctrine</a></li
li><a
href="../../../Shop/MoralAndSocialPamphlets.htm">Moral & Social</a></li
li><a
href="../../../Shop/SacramentsPamphlets.htm">Sacraments</a></li
li><a
href="../../../Shop/SciencePamphlets.htm">Science &
Religion</a></li

Why have the additional ../../ 's appeared?
I have altered the template and then applied it to all the pages on the
site
but the pages do not alter. The page still appears to behave quite
normally.

Would value anyone's comments.





Reply With Quote
  #3  
Old   
BrianOG
 
Posts: n/a

Default Re: paths in templates and documents - 10-24-2005 , 03:29 PM



Hi Murray,
I think I now understand.
My root folder is defined as H:\WebDesign\Faith\
The Faith (root) folder contains a Shop folder which contains the
CatecheticsPamphlets.htm file
I assume that, depending on the page in which the menu is placed, the link
changes. So, in the case of pages in
Faith\Ideas\Articles\SacramentsArticles\ this menu link is defined as
.../../../Shop/CatecheticsPamphlets.htm (down three to root),
whereas in Faith\Events this menu link is defined as
.../Shop/CatecheticsPamphlets.htm (down one to root)
Am I right? Sorry to be so dumb
Regards
Brian



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

Default Re: paths in templates and documents - 10-24-2005 , 03:58 PM



Yes - that's correct. If you would spawn a child from the template, and
save that child in the root folder, the link would be <a
href="whatever.html". If you saved it one folder down from the root, it
would then be <a href="whatever/whatever.html", etc. DW is managing the
links for you based on where you saved the child page.

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
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
==================


"BrianOG" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Hi Murray,
I think I now understand.
My root folder is defined as H:\WebDesign\Faith\
The Faith (root) folder contains a Shop folder which contains the
CatecheticsPamphlets.htm file
I assume that, depending on the page in which the menu is placed, the link
changes. So, in the case of pages in
Faith\Ideas\Articles\SacramentsArticles\ this menu link is defined as
../../../Shop/CatecheticsPamphlets.htm (down three to root),
whereas in Faith\Events this menu link is defined as
../Shop/CatecheticsPamphlets.htm (down one to root)
Am I right? Sorry to be so dumb
Regards
Brian





Reply With Quote
  #5  
Old   
BrianOG
 
Posts: n/a

Default Re: paths in templates and documents - 10-26-2005 , 07:58 AM



Thanks, Murray, for your help.
Brian


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

Default Re: paths in templates and documents - 10-26-2005 , 08:36 AM



You're welcome.

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
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
==================


"BrianOG" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Thanks, Murray, for your help.
Brian




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.