Home > Contents > Index >
AssetMaker   |    Cart Tags   |    Errors   |    Miscellany   |    Index

 

ASSET

The first tag in an asset descriptor file.

It names the new asset type and its database table and sets some behavior and display attributes of the assets of that type. The opening tag, <ASSET>, is always the first line of code in an asset descriptor file and the closing tag, </ASSET>, is always the last line of code.

There can be only one ASSET tag pair per asset descriptor file because you can create only one asset type per asset descriptor file.

Syntax

Parameters

NAME (required)
The internal name of the asset type. AssetMaker uses this string for the following items:

Because the string provided by this parameter becomes the name of the database table, you must use only the characters that your DBMS recognizes.

DESCRIPTION (required)
The external name of this asset type, that is, the name of this asset type when it is displayed in the CS-Direct forms and menus.

PLURAL (optional)
The external name of the plural form of the asset type, that is, the name of this asset type when it is displayed in the CS-Direct forms and menus. If not provided the plural form is created by adding 's' to the value provided in the DESCRIPTION field. This value can subsequently edited via the Admin UI.

PROCESSOR (required)
The version number of AssetMaker at the time that you upload this asset descriptor file. The current version number is 6.

MARKERTEXT (optional)
A string of up to 32 characters that marks required fields for this asset type in the CS-Direct forms. (Fields are defined as required with the INPUTFORM attributes. See INPUTFORM for more information.) You can use a text string only; you cannot use HTML or any other markup code in the string for MARKERTEXT.

This parameter is used in conjunction with the MARKERIMAGE argument, described next. If both MARKERTEXT and MARKERIMAGE are set, only the image specified by MARKERIMAGE is used in the CS-Direct forms.

If a field is defined as required but there is no value set for either MARKERTEXT or MARKERIMAGE, AssetMaker uses an asterisk (*) to mark the field as required.

MARKERIMAGE (optional)
An image file to use to mark required fields in the CS-Direct forms for assets of this type. The string defined for MARKERIMAGE must be a URL that refers to a .gif or a .jpg image file. The URL must point to a valid Web root directory that is configured on the Web server or to a directory relative to that root.

DEFDIR (required)
The default storage directory for column data that is to be stored as an external file. In other words, the storage directory for any upload fields (URL column, URL field) in the asset type. All asset types must have DEFDIR defined.

For information about upload fields, see INPUTFORM.

RENDERUSINGTEMPLATE (optional)
Indicates whether this asset type can be previewed using a Template asset. If not provided, it is set to yes. When set to no, the preview icon will not appear for assets of this type.

UNNAMEDASSOCIATIONS (optional)
Indicates whether this asset type is a heterogenous collection assets, i.e., can have multiple children assets of multiple asset types. When this is set to 'yes', the edit form for this asset type will include a select box for selecting assets into the asset. If not provided, it is set to 'no'.

Example

This code fragment shows the ASSET statement for an asset type named ImageFile:

This code fragment shows the ASSET statement for an asset type named Container that supports unnamed associations:

This code fragment shows the ASSET statement for an asset type named StyleSheet that is not rendered via Template asset:

  Home > Contents > Index >

FatWire Miscellaneous Reference
Copyright 2005,2006,2007 by FatWire Software
All rights reserved.