Creating a tag definition file
203
You can create the definition file in one of the following ways:
•
Write it manually.
•
Create it from an existing tag definition file.
•
Use the Tag Definitions Library dialog box to add a tag and edit the generated file.
The following sections describe how to define attribute categories
Defining attributes
The
attributes
block defines attributes inside the main
tag
block.
See
../VTML_Reference/attributes.html
attributes
/a
in the VTML Reference for
syntax and usage information.
The
attributes
block can only contain attrib tags. The following example
demonstrates the definition of four tag attributes:
<attributes>
<attrib name="value">
<attrib name="title">
<attrib name="alt">
<attrib name="align">
</attributes>
In most cases, features such as Tag Insight require more than just the names of the
attributes. You can use the
attrib
tag to define the following attributes:
•
Attribute value types
•
Enumerated values for the
align
attribute
The optional
caption
attribute specifies the form in which the option appears in the
drop-down lists, while the
value
attribute specifies the underlying value used by the
attribute.
See
../VTML_Reference/attrib.html
attrib
/a
in the VTML Reference for syntax and
usage information.
Defining attribute categories
Use the
attribcategories
section to organize the attributes when viewed in Tag
Inspector. The
attribcategories
block can only contain
attribgroup
tags. The
following example shows four attribute category definitions.
<attribcategories>
<attribgroup name="appearance"
elements="background,bgproperties,leftmargin,,topmargin"/>
<attribgroup name="colors"
elements="bgcolor,vlink,alink,link,text"/>
<attribgroup name="misc"
elements="gizmo"/>
</attribcategories>
See
../VTML_Reference/attribgroup.html
attribgroup
/a
in the VTML Reference for
syntax and usage information.
Summary of Contents for HOMESITE
Page 11: ...Contents xi Table of CommandID values 310 Table of SettingID values 314 Glossary 323...
Page 12: ...xii Contents...
Page 20: ...xx About This Book...
Page 28: ...8 Chapter 1 Setting Up the Product...
Page 70: ...50 Chapter 4 Managing Files...
Page 88: ...68 Chapter 5 Writing Code and Web Content...
Page 116: ...96 Chapter 6 Editing Pages...
Page 148: ...128 Chapter 7 Using Web Development Languages...
Page 190: ...170 Chapter 11 Deploying Files...
Page 210: ...190 Chapter 12 Testing and Maintaining Web Pages...
Page 216: ...196 Chapter 13 Extending the Help System...
Page 350: ...330 Glossary...
Page 358: ...338 Index...