Previous Chapter | Up | Next Section | Contents

Setting and using Folder Properties


Stan has decided to add a property to the folders. He creates a standard description for the widget product. Properties can be used by any contained object. To set properties, go to the Properties view on a Folder. Current properties are listed first, along with a checkbox and a text area. To change properties, simply enter the value changes in the text area and click "Save Changes". To delete a property, click its check box and "Delete". Adding a new property requires that you enter an id, select the property type from the drop down-list, and fill in the value of the new property. Once the new information is entered, click "Add". The Properties view of a Folder is shown in Figure 39 .

Properties of a Folder

 

Properties can be one of several "Types." For a detailed description of each type see Table 40.

Description of Property types

TYPE

Description

String

A string of characters, like a title or an email address

Boolean

Represents two truth values, either true or false

Date

A DateTime value. DateTime values can be entered and formatted in objects in a variety of ways. See "DateTime Formatting" in the DTML Guide for details

Float

A floating point number, like 4.55

Int

An integer

Lines

Lines are lists of items that can be looped over the Document Templates. After a Lines property has been added it is editable in a large text area instead of a small field. Each line is a new element in the sequence.

Long

A long integer (for really large numbers)

Text

After adding a new Text property, it will be editable in a large text are instead of a small field

Token

Tokens are a spaced-separated list of items that can be looped over the Document Templates. For example, adding a token with the value of "eeny meeny miney mo" can be rendered in HTML as a bulleted list, a select box, or any other sequence. A "yes no sometimes" list can be changed in one place to a "yes no often rarely."

 

 

Previous Chapter | Up | Next Section | Contents

Banner.Novgorod.Ru