7 Replies Latest reply on Sep 13, 2008 3:46 PM by Newsgroup_User

    Template editable region question

    Russell_MTL Level 1
      (This is using basic HTML and some CSS styling for text with Dreamweaver MX 2004)

      I suspect I've been doing things 'the hard way' for too long and am now wondering if there's an easy workaround for something I'm trying to do?

      I have a navigation button (a gif) in my site template that I want to have its 'link' editable on all the pages. But I don't want the image itself to be editable, just its link. On a '2 language version' website I link each page to the corresponding 'other language' page when that language version button is pressed.

      If I make the button editable everything then is editable so if I modify the button image in the template it's not properly updated on the pages. I have to go to EVERY page and fix that image and this it what feels like 'the hard way'.

      If this is simply a 'read the manual' situation, I apologize. I've just spent time poking in the help files and so far I'm getting nowhere with finding the trail to making only the URL editable in a template menu 'button' ??

      Is there an easier way?

      Thanks

      Russell
        • 1. Re: Template editable region question
          Level 7
          > If this is simply a 'read the manual' situation, I apologize. I've just
          > spent
          > time poking in the help files and so far I'm getting nowhere with finding
          > the
          > trail to making only the URL editable in a template menu 'button' ??

          It is. Read about "editable attributes". You can make the href attribute
          editable. This is a very tough way to go, though. There are much better
          ways, really, using server scripting, or even javascript (which would render
          your site non-functional if javascript is not enabled).

          --
          Murray --- ICQ 71997575
          Adobe Community Expert
          (If you *MUST* email me, don't LAUGH when you do so!)
          ==================
          http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
          http://www.dwfaq.com - DW FAQs, Tutorials & Resources
          ==================


          "rproulxmtl" <webforumsuser@macromedia.com> wrote in message
          news:gagk5e$odo$1@forums.macromedia.com...
          > (This is using basic HTML and some CSS styling for text with Dreamweaver
          > MX
          > 2004)
          >
          > I suspect I've been doing things 'the hard way' for too long and am now
          > wondering if there's an easy workaround for something I'm trying to do?
          >
          > I have a navigation button (a gif) in my site template that I want to have
          > its
          > 'link' editable on all the pages. But I don't want the image itself to be
          > editable, just its link. On a '2 language version' website I link each
          > page to
          > the corresponding 'other language' page when that language version button
          > is
          > pressed.
          >
          > If I make the button editable everything then is editable so if I modify
          > the
          > button image in the template it's not properly updated on the pages. I
          > have to
          > go to EVERY page and fix that image and this it what feels like 'the hard
          > way'.
          >
          > If this is simply a 'read the manual' situation, I apologize. I've just
          > spent
          > time poking in the help files and so far I'm getting nowhere with finding
          > the
          > trail to making only the URL editable in a template menu 'button' ??
          >
          > Is there an easier way?
          >
          > Thanks
          >
          > Russell
          >
          >

          • 2. Template editable region question
            Russell_MTL Level 1
            quote:

            Originally posted by: Murray
            Read about "editable attributes". You can make the href attribute editable.


            Thanks Murray.

            First try:

            - Select button image -> Make attribute Editable -> add HREF etc... (which is not offered on the pulldown menu)
            - Create a new page with the template
            - Cannot change link as it's not an editable region.

            Second try:

            - Select button image in template
            - Insert -> Template Object -> Editable region (give it a name)
            - Select button image -> Make attribute Editable
            - Get message "You cannot make an editable atribute inside an editable region."

            Where to now with that plan? ...

            Russell :-)
            • 3. Re: Template editable region question
              Level 7
              in the template, add a link to this image.
              Now in the lower left margin of the design window, select the <a href> tag

              menu->modify->templates->make attribute editable

              select the href, and give a default value.

              save template
              make child page

              change the value of the href using modify->Template Properties

              In other words- Add the link to the image in the template first, then the
              href exists and you can make it an editable attribute

              --
              Alan
              Adobe Community Expert, dreamweaver

              http://www.adobe.com/communities/experts/



              • 4. Re: Template editable region question
                Level 7
                > - Select button image -> Make attribute Editable -> add HREF etc... (which
                > is
                > not offered on the pulldown menu)

                Wrong start. Select the ANCHOR TAG that wraps the image, not the image tag.
                This would also explain why you do not see HREF in the list of attributes,
                since <img> doesn't have an 'href' attribute.

                Your second try is completely wrong, but it illuminates another problem. Is
                this image in an editable region? I'm thinking you need to completely
                rethink your plans here....

                --
                Murray --- ICQ 71997575
                Adobe Community Expert
                (If you *MUST* email me, don't LAUGH when you do so!)
                ==================
                http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
                http://www.dwfaq.com - DW FAQs, Tutorials & Resources
                ==================


                "Russell_MTL" <webforumsuser@macromedia.com> wrote in message
                news:gagqja$1u7$1@forums.macromedia.com...
                >
                quote:

                Originally posted by: Murray
                > Read about "editable attributes". You can make the href attribute
                > editable.
                >

                >
                > Thanks Murray.
                >
                > First try:
                >
                > - Select button image -> Make attribute Editable -> add HREF etc... (which
                > is
                > not offered on the pulldown menu)
                > - Create a new page with the template
                > - Cannot change link as it's not an editable region.
                >
                > Second try:
                >
                > - Select button image in template
                > - Insert -> Template Object -> Editable region (give it a name)
                > - Select button image -> Make attribute Editable
                > - Get message "You cannot make an editable atribute inside an editable
                > region."
                >
                > Where to now with that plan? ...
                >
                > Thanks :-)
                >
                >

                • 5. Re: Template editable region question
                  Russell_MTL Level 1
                  quote:

                  Originally posted by: Murray
                  Your second try is completely wrong, but it illuminates another problem. Is
                  this image in an editable region?



                  Yes, it's the image that is the link. Here's a link to the site so you can see what I'm doing (if you're curious):

                  http://www.slchoir.qc.ca

                  You'll see that on each page the ENGLISH or FRENCH buttons take the visitor to the corresponding page in the other language. Problem is when I want to to change the button graphic it's not automatically updated on the pages. Yes, I can do a 'search and replace' sitewide in the source code, but thought there might be an easier way.

                  Alan's idea sounded good untiI I tried it and could not find any "<a href> tag
                  in the lower left margin of the design window". Perhaps I'm using a different interface (using Designer and not Coder.)

                  Thanks for the help :-)

                  Russell
                  • 6. Re: Template editable region question
                    Russell_MTL Level 1
                    quote:

                    Originally posted by: Alan
                    in the template, add a link to this image.
                    Now in the lower left margin of the design window, select the <a href> tag
                    menu->modify->templates->make attribute editable
                    select the href, and give a default value.
                    save template
                    make child page
                    change the value of the href using modify->Template Properties
                    In other words- Add the link to the image in the template first, then the
                    href exists and you can make it an editable attribute.



                    I GOT IT !! :-))

                    Thanks. The 1st time I tried this I again made the button an editable region which was the mistake. I re-traced your instructions and all is now well. I have not used "modify->Template Properties" in the past. That's the trick.

                    Thanks again to you and Murray! I think he was saying to do the same thing but it was your detailed steps that got me home :-)

                    Russell



                    • 7. Re: Template editable region question
                      Level 7
                      Yeah - the last thing you want to do is to have your navigation elements in
                      editable regions.

                      --
                      Murray --- ICQ 71997575
                      Adobe Community Expert
                      (If you *MUST* email me, don't LAUGH when you do so!)
                      ==================
                      http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
                      http://www.dwfaq.com - DW FAQs, Tutorials & Resources
                      ==================


                      "Russell_MTL" <webforumsuser@macromedia.com> wrote in message
                      news:gahecr$log$1@forums.macromedia.com...
                      >
                      quote:

                      Originally posted by: Alan
                      > in the template, add a link to this image.
                      > Now in the lower left margin of the design window, select the <a href> tag
                      > menu->modify->templates->make attribute editable
                      > select the href, and give a default value.
                      > save template
                      > make child page
                      > change the value of the href using modify->Template Properties
                      > In other words- Add the link to the image in the template first, then the
                      > href exists and you can make it an editable attribute.
                      >

                      >
                      > I GOT IT !! :-))
                      >
                      > Thanks. The 1st time I tried this I again made the button an editable
                      > region
                      > which was the mistake. I re-traced your instructions and all is now well.
                      > I
                      > have not used "modify->Template Properties" in the past. That's the trick.
                      >
                      > Thanks again to you and Murray! I think he was saying to do the same thing
                      > but
                      > it was your detailed steps that got me home :-)
                      >
                      > Russell
                      >
                      >
                      >
                      >
                      >