
108
Serena® Collage® 5.1.3
Chapter 3 Design-Time Component Reference
The Select Component Structure
The Select component includes two sections:
The component tag, which defines the property or metadata value which will be used
to determine which content snippet to display
The body, which defines the unique content snippets for the different property or
metadata values
Component Tag
The opening tag includes a
select
property, which identifies the asset property or
metadata field the values of which will be used to determine which content snippet to
insert. The select property uses property macros to identify the property. For example,
the opening tag below uses a metadata field called Author to select the content snippets:
<nexus:component classid="nexus/components/Select"
code="$nexusComponents" select="$node.meta('Author')">
body
</nexus:component>
You use the select property to display content based on property definitions for any one of
the following:
The asset that contains the component
The deploy map which was used to deploy the asset
The deploy folder that contains the asset
The data field macros include:
Value Description
$node.FileName
The actual file name of the asset that contains the
component
$
type
.name
The name of:
The asset that contains the component (
$node.name
)
The deploy map that was used to publish the asset
(
$publishmap.name
)
Or the deploy folder that contains the asset
(
$parent.name
)
$
type
.assetid
The asset ID number of:
The asset that contains the component
(
$node.assetid
)
The deploy map that was used to publish the asset
(
$publishmap.assetid
)
Or the deploy folder that contains the asset
(
$parent.assetid
)
Kommentare zu diesen Handbüchern