A Simple Example Of Creating A New Tag Editor - MACROMEDIA DREAMWEAVER 8-EXTENDING DREAMWEAVER Manual

Extending dreamweaver
Table of Contents

Advertisement

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
extract the current temperature from a weather database, to illustrate the steps necessary to
create a new tag editor.
The attributes for the
Attribute
zip
tempaturescale
You create this new tag editor by performing the following steps:
Registering the tag in the tag library
Creating a tag definition (VTML) file
Creating a tag editor UI
Adding a tag to Tag Chooser
270
Tag Libraries and Editors
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
attribute displays reference content in
REFERENCE
the incorporated Reference panel.
As many as three strings separated by commas
that describes 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
only; optional for
third string is optional.
Any string that is different from the
attributes of other elements in this file.
cfweather
tag are described in the following table:
cfweather
Description
A five-digit ZIP code
The temperature scale (Celsius or Farhenheit)
tag, which represents the tag to insert:
ELEMENT
ELEMENT
and
CATEGORY
TCLIBRARY
element.id
, a hypothetical ColdFusion tag designed to
Mandatory/
Optional
Mandatory
Mandatory
Optional
(
and
desc
reference
mutually
exclusive)
Optional
(
and
desc
reference
mutually
tag
exclusive)
tags. The
Optional
are
are

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver 8

Table of Contents