ATTRIB defines an attribute. It also controls databinding between an existing attribute in a tag being edited and the user interface in a Tag Editor or Tag Inspector. Also serves as input for Tag Insight and Tag Tips.
The following subjects are covered in this document:
Related information about VTML and WIZML:
|
ATTRIB plays a role in the following VTML-driven tools:
The ATTRIB tag can occur only inside the ATTRIBUTES section.
The ATTRIB tag has several functions:
In most cases, this is an empty tag. The exception is for TYPE Enumerated: in that case the tag is a container and must contain one or more ATTRIBOPTION tags to sum up the possible values.
Defaults indicated in bold.
<ATTRIB .../> or <ATTRIB ... TYPE="Enumerated"> </ATTRIB> | |
---|---|
NAME | The name of the attribute as it appears in HTML or VTML |
CONTROL | The name of the control in the visual editor to be associated with the attribute's value. |
![]() |
The data type of the attribute in Tag Inspector. Possible values:
|
![]() |
(Optional) Will cause values already used (typed) to be cached in a class by this name so they can be re-displayed as an option. There is a set of built-in classes:
Currently, caching works only for Tag Inspector, not for the controls in a Tag Editor or the dropdown lists in Tag Insight. |
DEFAULT | Obsolete. |
TYPE="Relativepath"
Tag Insight will always show a dropdown list with a hard-coded set of possible values. (Tag Inspector does the same but only for the HREF attribute in an A tag.)
This list consists of a complete set of possible protocols to be used for a HREF attribute of the A tag or a SRC attribute of an IMG tag, as well as a "#" which can be
used for a reference to a local anchor. Neither of these are actually relative references in the strict sense.
You can get round this behavior by either using the default Text type (no dropdown list) or using TYPE="Enumerated" and providing your own list.
Tag Inspector will allow the option of browsing local or remote file systems to determine the URL where TYPE="Relativepath" is defined, as will a
Tag Editor; if a local path is chosen, the resulting reference will indeed be relative.