
88
Serena® Collage® 5.1.3
Chapter 3 Design-Time Component Reference
nexusComponents.jar
. You can also set this property to:
code="$nexusComponents"
which will resolve to the correct path.
By default, the Navigation Bar component uses the current site structure to which
the page belongs to define its links. If you want to use the deploy folder structure
instead, or choose a particular site structure in the project, add one of the
following properties to the opening tag:
• To use deploy folder structure:
navigation="pubfolders"
root="/
root_folder
" select="/
WebSite
"
For the
root
property, enter the deploy folder which will be defined as the root
folder for the navigation bar. Any link which is defined as relative to the root
will use this folder.
• To choose a particular site structure:
sitestructure="
path to site structure
"
For the
nodes
property, enter all of the links that you want to generate. See "Node
Options for Links" on page 89 for details. Each node value must be separated by a
space.
For the
display
property, enter either
vertical
or
horizontal
.
2
Do one of the following to define the active link button. The active button is used to
link to the current page.
If you are using image type buttons, enter:
<node:active>
<a href="$node.url">
<img name="Name" src="path" text="$node.name">
</a>
</node:active>
Specify an image name, the path to the image file, and any other
img
attributes.
Additionally, include any HTML formatting for the button, such as spacing or line
breaks.
Optionally, if you want Collage to flatten text on top of the image button, add a
text a
ttribute, such as
text="Home".
If you want the button to display the
name of the current page, define the attribute as
text="$node.name"
If you are using text type buttons, enter:
<node:active>
[<a href="$node.url">
Text
</a>]
</node:active>
Enter the text that you want to appear on the button in place of
Text
or, if you
want Collage to automatically generate text based on the names of the linked
asset, enter
$node.name
.
TIP
The
$node.url
macro generates a relative URL. You can also generate an
absolute URL to the asset by instead using the
$node.absurl
.
Kommentare zu diesen Handbüchern