ATTRIBUTES Section

Once the layout of controls is completed one needs to define the way in which editor controls get populated when editing an existing tag. This is done in the ATTRIBUTES block of the main tag editor template. The attribute block is defined using <ATTRIBUTES> and </ATTRIBUTES> tags inside the main TAG block.

The ATTRIBUTES block can only contain <ATTRIB> tags. The ATTRIB tag defines the way tag attribute values get filled into the dialog controls.

<ATTRIBUTES>
<ATTRIB NAME="VALUE"	CONTROL="txtName">
<ATTRIB NAME="TITLE"	CONTROL="txtTitle">
<ATTRIB NAME="TITLE"	CONTROL="txtTitle2">
<ATTRIB NAME="ALT"	CONTROL="txtAltText">
<ATTRIB NAME="ALIGN"	CONTROL="dropAlign">	
</ATTRIBUTES> 

The name attribute of the ATTRIB tag specifies the name of the attribute, while CONTROL specifies which control should the value of that attribute assigned to. Notice that you can have multiple ATTRIB tag with the same NAME. This is common for more complex tag editor dialogs where a single attribute value may have to be filled into multiple controls.

Special $$TAGBODY attribute name

There is one special tag attribute name ($$TAGBODY) which is used when a control needs to be populated by the body of a tag. An example of such a tag editor is the editor for the HTML tag TEXTAREA. The body of the TEXTAREA tag is filled into the txtTextAreaContent control using the following ATTRIB tag.

<ATTRIB NAME="$$TAGBODY" CONTROL="txtTextAreaContent">


(Editors contributed by Kevin Davis and Wil Genovese)