Creating Tag Definitions
175
You can create the definition file in three 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.
Defining attributes
The
attributes
block defines attributes inside the main
tag
block.
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.
Defining attribute categories
Use the
attribcategories
section to define attribute categories. The categories are
used to organize the attributes when viewed in the Tag Inspector. The
attribcategories
block can only contain
attribgroup
tags. The following example
demonstrates the definition of four categories.
<attribcategories>
<attribgroup name="appearance"
elements="background,bgproperties,leftmargin,,topmargin"/>
<attribgroup name="colors"
elements="bgcolor,vlivk,alink,link,text"/>
<attribgroup name="misc"
elements="gizmo"/>
</attribcategories>
Содержание ColdFusion Server 5
Страница 18: ...xviii About This Book...
Страница 26: ...8 Chapter 1 Setting Up the Product...
Страница 42: ...24 Chapter 2 Configuring Browsers and Servers...
Страница 60: ...42 Chapter 3 Exploring the Workspace...
Страница 100: ...82 Chapter 6 Editing Pages...
Страница 126: ...108 Chapter 7 Using Web Development Languages...
Страница 212: ...194 Chapter 13 Customizing the Development Environment...
Страница 320: ...302 Glossary...