
54
Serena® Collage® 5.1.3
Chapter 3 Design-Time Component Reference
You can also display a list of press releases created between two dates. The following
example shows the
filter
property limiting the AssetQuery component to press releases
created between 7/1/03 and 7/31/03:
filter="(A.AssetType='Press Release') and (A.CreateDate between '7/1/
03' AND '7/31/03')"
The next example shows the
filter
property limiting the AssetQuery to press releases
created in July of any year:
filter="(A.AssetType='Press Release') and (DATEPART(mm, A.CreateDate) =
7)"
The next example displays a list of press releases that were deployed between the start
date and expiration date:
Banner
The Banner component is an implementation of the Navigation Bar component which
allows you to insert either of the following onto a web page:
Standard text.
A standard image file, which you can automatically flatten text onto. Collage can layer
text onto a banner image, then generate a non-aliased bitmap of the banner with the
text flattened onto it. As a default it will use standard image effects to place and
format the text. But if you have defined specific effects for the images, these effects
will be used. This is useful when you want to control the font, color, and placement of
the text on the banners or navigation buttons.
You can use the Banner component on a master page, in order to easily reuse a banner on
any page to which the master page is applied.
For more information on the Navigation Bar component, from which the Banner
component is derived, see "Navigation Bar" on page 84.
<nexus:component classid="nexus/components/AssetQuery"
code="$nexusComponents" dwcomptype="assetquery"
root="/WebSite/PressRoom/"
filter="(A.AssetType='Press Release') and
((A.StartDate <= current timestamp) or (A.StartDate
is null)) and ((A.ExpireDate > current timestamp) or
(A.ExpireDate is null))"
<nexus:prelog> </nexus:prelog>
$node.name -- Dates: $node.startdate("MM/d/yy") to
$node.expiredate("MM/d/yy")
<nexus:prolog> </nexus:prolog>
</nexus:component>
Start and
expire dates
NOTE
You can use the Image Effects feature in Collage to change the appearance of the
banner. See the Collage online help for more information.
Commenti su questo manuale