This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > September 2005 > Dreamweaver 8 breaking template links





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Dreamweaver 8 breaking template links
rommel543

2005-09-19, 7:18 pm

I have work with templates on a regular basis and found that when working with
DW8 all links get a "templates/" added to the front of them. This is for all
links, image source locations, javascript source locations, etc.

Murray *TMM*

2005-09-19, 7:19 pm

Please answer the following questions for me:

1. How is your local site defined (i.e., where is your local root folder)?
2. What do you have in the http:// field of your local site's definition?
3. What kind of link relativity are you using - root or document?

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

"rommel543" <webforumsuser@macromedia.com> wrote in message
news:dgmfqi$rjc$1@forums.macromedia.com...
>I have work with templates on a regular basis and found that when working
>with
> DW8 all links get a "templates/" added to the front of them. This is for
> all
> links, image source locations, javascript source locations, etc.
>



Jamie

2005-09-19, 7:21 pm

It appears that any link left as document relative in a template is getting
.../Templates/ added to the link in any page created from the template. It
was not this way in MX2004

If the link is absolute or starts with relative path info such as ../ or /
then it also seems to work but there is no way to really make it document
relative to the newly created document in Dreamweaver 8.



"Murray *TMM*" <forums@HAHAgreat-web-sights.com> wrote in message
news:dgmgen$sj8$1@forums.macromedia.com...
> Please answer the following questions for me:
>
> 1. How is your local site defined (i.e., where is your local root

folder)?
> 2. What do you have in the http:// field of your local site's definition?
> 3. What kind of link relativity are you using - root or document?
>
> --
> 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
> ==================
>
> "rommel543" <webforumsuser@macromedia.com> wrote in message
> news:dgmfqi$rjc$1@forums.macromedia.com...
>
>



Murray *TMM*

2005-09-19, 7:21 pm

Please answer the questions I asked.

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

"Jamie" <jamie@something.com> wrote in message
news:dgn4g6$c3$1@forums.macromedia.com...
> It appears that any link left as document relative in a template is
> getting
> ../Templates/ added to the link in any page created from the template. It
> was not this way in MX2004
>
> If the link is absolute or starts with relative path info such as ../ or /
> then it also seems to work but there is no way to really make it document
> relative to the newly created document in Dreamweaver 8.
>
>
>
> "Murray *TMM*" <forums@HAHAgreat-web-sights.com> wrote in message
> news:dgmgen$sj8$1@forums.macromedia.com...
> folder)?
>
>



Jamie

2005-09-19, 7:22 pm

Hey Murray,

While I was not the original poster, here is my info.

Local Root Folder: c:\inetpub\wwwroot\
Links Relative to: Document
http address is: http://localhost/

It will do the same thing whether the site is set to document or root
relative.



"Murray *TMM*" <forums@HAHAgreat-web-sights.com> wrote in message
news:dgn5v8$2em$1@forums.macromedia.com...
> Please answer the questions I asked.
>
> --
> 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
> ==================
>
> "Jamie" <jamie@something.com> wrote in message
> news:dgn4g6$c3$1@forums.macromedia.com...
It[color=darkred]
/[color=darkred]
document[color=darkred]
>
>



srstuart

2005-09-30, 6:21 pm

I've found the same issue. The DW8 install automatiically included all the
MX2004 sites. I updated my template, and all the links are now prefaced with
the templates/ directory.

1) Local site is on my local hard drive
2) Site http address is fully qualified (http://xxxxx)
3) Links are relative to the document

Looking at the code in the template, I correctly see the links as
"pagename.asp" or "../pagename.asp", but once the linked pages are updated, all
linkes are changed to "templates/pagename.asp" or "../templates/pagename.asp".

Opened the site again in MX2004, resaved the template, and it correctly
updated all the pages, fixing the broken links.

Very first update I've made with DW8, and it's buggy...

Steve


Originally posted by: Newsgroup User
Please answer the following questions for me:

1. How is your local site defined (i.e., where is your local root folder)?
2. What do you have in the http:// field of your local site's definition?
3. What kind of link relativity are you using - root or document?





Stephanie Sullivan

2005-09-30, 6:21 pm

On 9/30/05 3:09 PM, in article dhk2hm$aoc$1@forums.macromedia.com,
"srstuart" <webforumsuser@macromedia.com> wrote:

> 3) Links are relative to the document


The template engine was actually FIXED in this version... So they must be
relative to the document, but the TEMPLATE is in its own directory. Links
must start with ../

Read about the change here (it bit me too!):
http://www.communitymx.com/blog/ind...=601&blogger=15

Emerging issues has the same basic info:
http://www.macromedia.com/cfusion/k...a3f38dcf#templ_
paths

> Very first update I've made with DW8, and it's buggy...


Not buggy... Just changed (and can be shocking)... :)

Stephanie Sullivan
Community MX Partner :: http://www.communitymx.com/author.cfm?cid=1008
Team Macromedia for Dreamweaver :: http://tinyurl.com/6huw3
Co-Author .: "Macromedia Dreamweaver MX 2004 Magic" :. New Riders
VioletSky Design :: http://www.violetsky.net

"Failure is the opportunity to begin again more intelligently." - Henry Ford

MarkScar

2005-09-30, 6:21 pm

Yep, I discovered the same "feature". It hit me with the include files that we
normally set up in our sites. Re-linking them in DW8 the "new" way fixed the
paths. Something to be aware of when working with MX sites being upgraded to
DW8 sites...

Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews