Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 92406

Re: Dreamweaver CS6 How to get nested templates to update?

$
0
0

Well, one very simple way would be to make that left column's contents come from a DW Library item. And if you didn't know, changes to Library items propagate to all pages containing that Library item, just the same way as templates work. For example, suppose main.dwt looked like this -

 

<div id="left"><!-- TemplateBeginEditable name="EditRegion2" -->

<!-- TemplateEndEditable -->

</div>

 

(That's right - the EditRegion2 is completely empty)

(I have made a minor edit to the code below that editable region to remove some invalid tags)

 

Then suppose you had two DW Library items: one for the English pages, and one for the Russian pages. The English Library item would look like this (I cut the content out of the main.dwt, then used File > New > Library item, and pasted that content in) -

 

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<h3 align="center"><strong>Informal EYTA Gathering<br />

First Tuesday of Every Month 14:00 -   16:00 at <br />

Ferns <br />

27 Guildhall Shopping Centre Exeter EX4 3HL</strong></h3>

    <p align="center"> </p>

    <p align="center"> </p>   

  <h3 align="center"> </h3>

    <h3 align="center"> </h3>

    <p align="center"> </p>

    <p align="left"> </p>   

    <p> </p>

    <p> </p>

    <p align="center"> Updated

      <!-- #BeginDate format:En2 -->21-Jun-2014<!-- #EndDate -->

    </p>

 

Now, when you spawn a child page from main.dwt, you simply insert the English or the Russian Library item into EditRegion2 and you are set.

 

Do you follow?

 

The benefit of this is that you don't need to use nested templates to achieve that flexibility in the left column. In addition, with this approach, you can create as many Library items as you need.


Viewing all articles
Browse latest Browse all 92406

Trending Articles