A Simple Example Of Creating A New Tag Editor - Adobe 38040334 - Dreamweaver CS3 User Manual

Extending dreamweaver
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

Tag
category.reference
category.icon
category.id
The following table lists the attributes of the
Attribute
element.name
element.value
element.desc
element.reference
element.id

A simple example of creating a new tag editor

The examples in this section use
ature from a weather database, to illustrate the steps necessary to create a new tag editor.
The attributes for the
cfweather
Attribute
zip
tempaturescale
You create this new tag editor by performing the following steps:
• "Registering the tag in the tag library" on page 204
• "Creating a tag definition (VTML) file" on page 204
• "Creating a tag editor UI" on page 205
• "Adding a tag to Tag Chooser" on page 207
Description
Value describes the language, topic, and subtopic to display in the Tag
info section.
Value is a relative path to an icon GIF.
Any string that is different from the
other categories in this file.
element
Description
Value appears as a List view item.
Value that is either placed directly into the code or a parameter that
passes into visual dialog boxes.
Value is an HTML string and appears in the incorporated Reference
panel. If not specified, the
reference
content in the incorporated Reference panel.
As many as three strings separated by commas that describe the
language, topic, and subtopic, respectively. This information appears in
the Reference panel. The first string is mandatory. The second string is
mandatory for the
tag only; optional for
element
tags. The third string is optional.
tclibrary
Any string that is different from the
elements in this file.
, a hypothetical ColdFusion tag designed to extract the current temper-
cfweather
tag are described in the following table:
Description
A five-digit ZIP code
The temperature scale (Celsius or Farhenheit)
attributes of
category.id
tag, which represents the tag to insert:
attribute displays reference
category
element.id
attributes of other
DREAMWEAVER CS3
Extending Dreamweaver
Mandatory/Optional
Optional (
and
desc
reference
are mutually
exclusive)
Optional
Mandatory
Mandatory/Optional
Mandatory
Mandatory
Optional
(
and
desc
reference
mutually exclusive)
Optional
(
desc
and
reference
mutually exclusive)
and
Optional
203
are
are

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents