5 Replies Latest reply on Oct 25, 2006 2:20 PM by twindeknecht

    Template not linking to files in folders

    twindeknecht Level 1
      Hi,

      I have a template that is for about 5 folders. Each folder has 3 html files in it. All the files in these folders are identical.

      The template has links set to go directly to those identical pages in each folder.

      For example:
      Template
      - home
      - about
      - contact

      Folder
      - home.html
      - about.html
      - contact.html

      The problem, is that when I save and post, Dreamweaver is adding /Templates/ into the link:

      /Templates/home.html

      How can I set the link, so that it stays in the same directory/folder? I have tried ../ but this will take it to the root directory.


      Any help is appreciated!


      Thanks.
        • 1. Re: Template not linking to files in folders
          Level 7
          Which DW? In versions prior to DW8, you would have to make your links like
          this -

          <a href="@@('whatever.html')@@"...

          and DW will leave those links alone. The downside is that by leaving them
          alone, they will not be managed, so you'll have to do that yourself.

          In DW8, just set your Site Definition > Templates to NOT update relative
          links. Make sure you understand how this will affect other relative links
          that you may *want* DW to manage....

          --
          Murray --- ICQ 71997575
          Adobe Community Expert
          (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
          ==================


          "bbmbuffalo" <webforumsuser@macromedia.com> wrote in message
          news:ehoag8$4r1$1@forums.macromedia.com...
          > Hi,
          >
          > I have a template that is for about 5 folders. Each folder has 3 html
          > files in
          > it. All the files in these folders are identical.
          >
          > The template has links set to go directly to those identical pages in each
          > folder.
          >
          > For example:
          > Template
          > - home
          > - about
          > - contact
          >
          > Folder
          > - home.html
          > - about.html
          > - contact.html
          >
          > The problem, is that when I save and post, Dreamweaver is adding
          > /Templates/
          > into the link:
          >
          > /Templates/home.html
          >
          > How can I set the link, so that it stays in the same directory/folder? I
          > have
          > tried ../ but this will take it to the root directory.
          >
          >
          > Any help is appreciated!
          >
          >
          > Thanks.
          >
          >


          • 2. Re: Template not linking to files in folders
            Level 7
            You will have to use editable attributes to do this. Otherwise dw will
            manage the paths, and assume that you are mistakenly trying to link to
            something inside the Templates folder.

            select the link.
            dw menu-->modify-->templates-->editable attribute
            set the HREF to be editable attribute, type Text, with the desired default
            value of home.html or whatever.





            > The template has links set to go directly to those identical pages in each
            > folder.

            • 3. Re: Template not linking to files in folders
              twindeknecht Level 1
              quote:

              Originally posted by: Newsgroup User
              Which DW?

              In DW8, just set your Site Definition > Templates to NOT update relative
              links. Make sure you understand how this will affect other relative links
              that you may *want* DW to manage....





              I am using DW8. If I change my Site Definition, will it affect just this site, or will this affect all sites that I edit on DW?

              Thanks
              • 4. Re: Template not linking to files in folders
                Level 7
                If you change the site definition for this site, then it will only affect
                this site. My point was that this change will affect ALL relative links in
                this site, including some that you may *want* DW to manage. You will be
                responsible for managing all of them, having made that change.

                --
                Murray --- ICQ 71997575
                Adobe Community Expert
                (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
                ==================


                "bbmbuffalo" <webforumsuser@macromedia.com> wrote in message
                news:ehode6$8dc$1@forums.macromedia.com...
                >
                quote:

                Originally posted by: Newsgroup User
                > Which DW?
                >
                > In DW8, just set your Site Definition > Templates to NOT update relative
                > links. Make sure you understand how this will affect other relative links
                > that you may *want* DW to manage....
                >
                >

                >
                >
                > I am using DW8. If I change my Site Definition, will it affect just this
                > site, or will this affect all sites that I edit on DW?
                >
                > Thanks
                >


                • 5. Re: Template not linking to files in folders
                  twindeknecht Level 1
                  That worked!

                  Thank you both for your help! It is appreciated!