1 Reply Latest reply on Mar 12, 2010 8:40 PM by Zabeth69

    Template margins and content?

    So Steller

      I have a few questions about templates that I cannot find an answer to:


      1.) I created a template based on a html page w/css, and a horizontal spry bar attached; when I designate some of the text as editable regions the page shifts, along with margins etc. (I have attached a before & after page of one section I tried to designate, and what it looks like after *I only selected the text as the editable region)


      2.) Why can't a div tag or heading tag be designated as an editable region?


      3.) Since I created the template off a html page, why is it that if I make changes to (lets say) the template that the html page changes too....I thought that even though I created the template from a html page that Dreamweaver would still recognize the 2 as being completely different pages and would not change both?


      I have bought the essential guide to Dreamweaver cs4 w/ajax, and php but it doesn't (along with any other book I looked at) give insight to quirky details like this.  Is there a website that has details to questions like this?






        • 1. Re: Template margins and content?
          Zabeth69 Level 5

          Remember that the Design View is not a WYSIWYG browser.You can get closer with Live View, but that's not a browser either.


          If you have designated areas as editable regions on your Template and have Invisible Elements showing ... like the blue tab at the top of each editable region...alignment of your divs will APPEAR to be displaced. Those blue tabs DO take up a little bit of real estate, you know! Turn off the Invisible Elements, and your layout will "snap" back into place.


          Why do you think a div cannot be designated as an editable region? You can either include the whole div, tags and all...in which case the tags will become editable...or include just the contents of the div, which will protect the div tag from harm. Same with a heading tag. You just have to be careful of your nesting, and not include the open tag in the editable region if you have not also included the closing tag.


          You can also designate attributes of tags as editable.


          If you have created a Template and indicated when you saved it as a Template that you wanted pages updated when the Template changes (one of the more obvious reasons for using a Template, by the way), yes, changes to the Template will propagate to the child pages made from that Template. The only parts that will change on the child page, though, will be in the ineditable regions.


          The deal with a Template is that it is not, strictly speaking, a PAGE, it is a Template for creating pages. Two different beasts altogether. LIke the difference between a cookie cutter and a cookie. They may both be the same shape, but only one of them is a cookie.


          I think you would enjoy running through some of the tutorials here on the Adobe site. They will give you additional insight into the workings of Dreamweaver CS4. The tutorials and the Adobe TV videos are well worth the time you take to do and view them.


          http://www.adobe.com/devnet/dreamweaver/ for the tutorials page.


          http://tv.adobe.com/ for Adobe TV.



          1 person found this helpful