MACROMEDIA CONTRIBUTE 3-DEPLOYING CONTRIBUTE Betriebsanweisung Seite 48

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 142
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 47
48
Serena® Collage® 5.1.3
Chapter 3 Design-Time Component Reference
Record information
. You can use the following syntax to display the record number
of the asset.
$node.recordnumber
The first asset in the list is record 1, the second asset in the list is record 2, and so on.
The last asset gives you the total number of records returned.
For detailed information on these and other data field macros that you can use with the
AssetQuery component, see "Data Field Macro Reference" on page 23.
Displaying Text on Images
When an image is used inside the AssetQuery body, the component can flatten text onto
the image. You can do this by adding a special
text
parameter to the
<img>
tag, as in the
example below:
<a href="$node.url"> <img src="button.gif"
text="$node.metadata('buttonname')"> </a>
This example flattens the value of a metadata field called
buttonname
on the image. You
can use this attribute in conjunction with any data field macros, or any other text value.
Formatting the AssetQuery Body
By default, all HTML that is defined in the body of the AssetQuery component (with the
exception of the
prelog
and
prolog
sections) is repeated for each asset that is returned
by the query. For example, if the body of the component consists simply of:
<li>$node.FileName
The filenames of each asset will be formatted as list items.
However, you can also define unique formatting for different records with the following
tags:
<nexus:next>
Indicates the ending point for the formatting of a record or set of
records, and the starting point of formatting for the next record or set of records. This
allows you to define a pattern of unique HTML formats for sets of records. For
example,
<nexus:next>
<tr>
<td>$node.FileName</td>
<nexus:next>
<td /jointfilesconvert/339554/bgcolor="green">$node.FileName</td>
</tr>
Will retrieve and display the filenames for two consecutive records, each with unique
formatting:
This formatting will repeat for each pair of records that is returned by the query. For
example, if six records are returned, the table might look like:
Seitenansicht 47
1 2 ... 43 44 45 46 47 48 49 50 51 52 53 ... 141 142

Kommentare zu diesen Handbüchern

Keine Kommentare