[thelist] Contribute editable regions without using templates?

Ross DeMeyere ross.demeyere at gmail.com
Wed Apr 13 19:46:15 CDT 2005

On 4/13/05, Hassan Schroeder <hassan at webtuitive.com> wrote:
> Comments, not tags:
>    <!-- TemplateBeginEditable name="whatever" -->
>    <!-- TemplateEndEditable -->

I figured it had something to do with that, but if I would enter that
into my pages in DreamWeaver, when I saved, it wanted to make a
template. And, when I put this into my page using a text editor, I
could edit the entire page in Contribute. But it gave me an idea. I
created a nothing template in DreamWeaver with one editable area and
created a page from it. It turns out that the tags (in comment form)
are a bit different in final application... The entire page is
enclosed with an "instance of template" and each editable region is
enclosed in an "instanceeditable"... now this can is something that I
can work with in in the straight code. It also has the advantage of
locking things in DreamWeaver (maybe not such an advantage).  Attached
below is the code for the model... Thanks for giving me a kick in the
right direction!

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin
template="none.dwt" codeOutsideHTMLIsLocked="false" -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- InstanceBeginEditable name="doctitle" -->
<!-- InstanceEndEditable -->
<!-- InstanceBeginEditable name="head" -->
<!-- InstanceEndEditable -->
<body style="margin:0px; background:#cba;">
<p>Don't touch this!</p>
<!-- InstanceBeginEditable name="EditRegion1" --><p>but you can touch
this</p><!-- InstanceEndEditable -->
<!-- InstanceEnd --></html>

Ross DeMeyere

More information about the thelist mailing list