HighDots Forums  

DW 8 - problem with templates

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss DW 8 - problem with templates in the Macromedia Dreamweaver forum.



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

Default DW 8 - problem with templates - 11-02-2005 , 07:11 PM






Hello all.

In my templates the links to the pages in the underlying code are correct
"page.html"
yet when I make a page from a template the link in that resultant page in the
underlying code
is incorrect "Templates/page.html". So all my links are broken and I can't
correct the code in the resultant page because it is greyed out.

Is this a bug in the new program? maybe I upgraded too soon.
Can someone help,,, please. and thank you.

Elizabeth


Reply With Quote
  #2  
Old   
WebspinnerInc
 
Posts: n/a

Default Re: DW 8 - problem with templates - 11-02-2005 , 07:27 PM






In the template file change the "page.html" to "../page.html". This will fix
this issue. Really the template is looking at the page from where it is
located... one directory above the template. Dreamweaver takes this into
account when aplying the template and so believes the page.html file is in the
templates directory.


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

Default Re: DW 8 - problem with templates - 11-02-2005 , 08:20 PM



Yeah - don't try to second-guess the templates and DW's link management.
All links in a template file should either be document relative (to the
template), or root relative. In the case of the former, DW's link
management will handle the link when you save 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
==================


"WebspinnerInc" <che (AT) webspinnerinc (DOT) com> wrote

Quote:
In the template file change the "page.html" to "../page.html". This will
fix
this issue. Really the template is looking at the page from where it is
located... one directory above the template. Dreamweaver takes this into
account when aplying the template and so believes the page.html file is in
the
templates directory.




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

Default Re: DW 8 - problem with templates - 11-02-2005 , 08:34 PM



thank you both for your help...... one additional question:

is"../page.html document relative or root relative??

elizabeth

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

Default Re: DW 8 - problem with templates - 11-02-2005 , 08:37 PM



It's document relative - root relative links always begin with a slash -

"/whatever/foo.html"

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


"BetsyW." <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
thank you both for your help...... one additional question:

is"../page.html document relative or root relative??

elizabeth



Reply With Quote
  #6  
Old   
WebspinnerInc
 
Posts: n/a

Default Re: DW 8 - problem with templates - 11-02-2005 , 08:48 PM



document relative ... ie. i am document "../" is "go back up one directory from me." "page.html" is " and you should find page.html"

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

Default Re: DW 8 - problem with templates - 11-02-2005 , 09:02 PM



OK thank you again, maybe that is my problem maybe i have to change a
preference so that the templates are document relative as opposed to root
relative. Is there a way to do this in DW 8 without having to go into ea
template and change
the underlying code?

Elizabeth.


Reply With Quote
  #8  
Old   
BetsyW.
 
Posts: n/a

Default Re: DW 8 - problem with templates - 11-02-2005 , 09:03 PM



OK thank you again, maybe that is my problem maybe i have to change a
preference so that the templates are document relative as opposed to root
relative. Is there a way to do this in DW 8 without having to go into ea
template and change
the underlying code?

Elizabeth.


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

Default Re: DW 8 - problem with templates - 11-03-2005 , 06:52 AM



You can specify the default relativity in the local site definition. How is
yours set?

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


"BetsyW." <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
OK thank you again, maybe that is my problem maybe i have to change a
preference so that the templates are document relative as opposed to root
relative. Is there a way to do this in DW 8 without having to go into ea
template and change
the underlying code?

Elizabeth.




Reply With Quote
  #10  
Old   
BetsyW.
 
Posts: n/a

Default Re: DW 8 - problem with templates - 11-03-2005 , 08:01 AM



I looked and in my site definitions it says "relative to document"

but most of my templates, when I opened up the site in the new DW8, revealed
links in the "page.html" format....

This is crazy..

elizabeth


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.