This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > September 2005 > Editable conditional region in nested templates





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 Editable conditional region in nested templates
petethebest

2005-09-01, 7:27 pm

In DW 2004, is it possible to have an conditional editable region in a nested
template? Or, if you prefer, an editable region inside a conditional one?

From the tests I runned, it doesn't work because the template engine seems to
remove the conditional region when it detect an editable region inside it,
which is a normal behavior for nested editable regions in nested templates.

Is there any workaround?

Sample code:



<!-- TemplateBeginPassthroughIf cond="visual" -->
<div id="visual">
<!-- InstanceBeginEditable name="text" -->
<p>Text...</p>
<!-- InstanceEndEditable -->
</div>
<!-- TemplateEndPassthroughIf -->

Sponsored Links


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