Adobe Extending Dreamweaver CS4 User Manual

Page 213

Advertising
background image

207

EXTENDING DREAMWEAVER CS4

Tag libraries and editors

<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>

<tclibrary name="Friendly name for library node" desc='Description for incorporated

reference' reference="Language[,Topic[,Subtopic]]">

<category name="Friendly name for category node" desc='Description for incorporated
reference' reference="Language[,Topic[,Subtopic]]" id="Unique id">

<category name="Friendly name for subcategory node" ICON="Relative path"
desc='Description for incorporated reference' reference="Language,Topic[,Subtopic]"
id="Unique id">

<element name="Friendly name for list item" value='Value to pass to visual dialog
editors' desc='Description for incorporated reference'
reference="Language[,Topic[,Subtopic]]" id="Unique id"/>

... more elements to display in the list view ...

</category>

... more subcategories ...

</category>

... more categories ...

</tclibrary>

The following table lists the tags that are available for use in the TagChooser.xml files:

The

category

tag represents all other nodes in the Tree view under the

tclibrary

’s node, as shown in the following

table:

The following table lists the attributes of the

element

tag, which represents the tag to insert:

Tag

Description

Mandatory/Optional

tclibrary

The tag is the outermost tag, which encapsulates this tag library’s Tag
Chooser structure.

Mandatory

tclibrary.name

Value appears in the Tree view node.

Mandatory

tclibrary.desc

Value is an HTML string and appears in the Tag Info section of the Tag
Chooser dialog box. If there is no

desc

attribute, the information for

Tag Info comes from the Reference panel. Interchangeable with

tclibrary.reference.

Optional (

desc

and

reference

are mutually exclusive)

tclibrary.reference

Value describes the language, topic, and subtopic to display in the Tag
Info section of the Tag Chooser dialog box. Interchangeable with

tclibrary.desc.

Optional (

desc

and

reference

are mutually exclusive)

Tag

Description

Mandatory/Optional

category.name

Value appears in the Tree view node.

Mandatory

category.desc

Value is an HTML string that appears in the Tag Info section of the Tag
Chooser dialog box. If neither

desc

nor

reference attr

is specified,

nothing appears in the Tag info section.

Optional (

desc

and

reference

are mutually exclusive)

category.reference

Value describes the language, topic, and subtopic to display in the Tag
info section.

Optional (

desc

and

reference

are mutually exclusive)

category.icon

Value is a relative path to an icon GIF.

Optional

category.id

Any string that is different from the

category.id

attributes of other

categories in this file.

Mandatory

Advertising
This manual is related to the following products: