
110
Serena® Collage® 5.1.3
Chapter 3 Design-Time Component Reference
<nexus:select>Web Team</nexus:select>
defines content to insert when the value is set to anything other than
Ken
,
Sara
, or
Alice
.
Displaying Text on Images
When an image is used inside the Select component 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.
Complete Example
<nexus:component classid="nexus/components/Select"
code="$nexusComponents" select="$node.meta('Author')">
<nexus:select "Ken">Author: Ken</nexus:select>
<nexus:select "Sara">Author: Sara</nexus:select>
<nexus:select "Alice">Author: Alice</nexus:select>
<nexus:select "">Author: Unknown</nexus:select>
<nexus:select>No Author</nexus:select>
</nexus:component>
How to Insert a Select Component
Complete this procedure to insert a Select component, either in Macromedia
Dreamweaver, or manually using your own HTML editor.
Dreamweaver
To insert the Select component in Dreamweaver:
1
In Dreamweaver, place the insertion point where you want to insert the component.
2
Click Window | Objects to display the Objects palette.
3
Select the
Serena Collage Design Components
palette.
4
Click the
Insert Select
button . The Insert Select Component dialog box appears.
IMPORTANT!
The Select component is unique from other design time components that can use the
$node.meta
macro, in that the name of the metadata field must be enclosed with single
quotes, rather than double quotes.
Kommentare zu diesen Handbüchern