
46
Serena® Collage® 5.1.3
Chapter 3 Design-Time Component Reference
For example:
<nexus:prelog>
<table>
<tr>
<td>Name</td>
<td>Created Date</td>
</tr>
</nexus:prelog>
Data Fields Macro Section
Each data field macro identifies the specific type of information to display about the asset,
such as metadata, filename, or contribution field content. By default, all HTML contained
in the body of an AssetQuery component (with the exception of the prelog and prolog
sections) is repeated for each asset that is returned by the query. If you want to define
unique HTML for different records, however, you can do so as well.
You use the data field macros to display information about any of the following:
A file asset which is returned by the query
The deploy map which was used to deploy the asset
The deploy folder that contains the asset
About the Data Fields
The syntax for each data field is:
$type.Fieldname
For example:
$node.filename
Displays an asset's filename.
Some fields support optional parameters, as well.
The different types of data you can return about an asset are:
Standard data fields
. The standard data fields are the standard properties which
Collage stores for all assets. For example,
$node.
FileName
retrieves and displays
the actual name of the file, such as home.html.
The standard data fields include:
Field Description
$node.assetid
Displays the asset's ID number
$node.CreateDate
Displays the date that the asset was
created
$node.Description
Displays the asset's description
$node.FileName
Displays the actual name of the file
$node.MimeType
Displays the asset's MIME-type
Kommentare zu diesen Handbüchern