MACROMEDIA CONTRIBUTE 3-DEPLOYING CONTRIBUTE Guida Utente Pagina 96

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 142
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 95
96
Serena® Collage® 5.1.3
Chapter 3 Design-Time Component Reference
the site structure. In this way, you can preserve the site's information hierarchy in
your navigation menus.
Site structure levels are defined as follows:
To insert the level number, the component must include the
$node.level
macro.
When you preview or deploy the component, Collage replaces
$node.level
with the
actual level number.
The number of children
that the node has
Children refers to any nodes which are nested directly beneath another node. In the
illustration above, the top level node (Index) has two children.
You can use this value to define unique formatting or behavior for navigation links to
nodes which have different numbers of children. For example, a link to a node with no
children may use one style of button, while a link to a node with multiple children may
use another style of button.
To insert the number of children, the component must include the
$node.children
macro. When you preview or deploy the component, Collage replaces
$node.children
with the actual number of children nodes.
Ways to Use the NavMap Component
In its simplest form, you can use the NavMap component to add HTML links to all nodes in
a site structure. This is useful if you want to create a simple site map, with links to each
page in the map.
If your site uses more sophisticated, JavaScript navigation menus, you can also use the
NavMap component to populate and execute JavaScript functions with information about
all of the nodes in the site structure. This allows you to define navigation logic based on
the level of each node in the site hierarchy, and based on the relationship of each node to
its children. To learn about using the NavMap component with JavaScript , see "NavMap
Example: Passing Node Values into JavaScripts" on page 100.
Choosing Between the NavMap and Navigation Bar
Components
The NavMap and Navigation Bar components provide similar navigation features for your
web pages; each can be used to automatically generate navigation menus based on site
hierarchy. To help you determine when to use each of these components, consider the
following important points:
The Navigation Bar component always generates navigation information that is
relative to the page that contains the component. This is ideal for navigation features
which help users keep track of their location in a specific section of a site. For
Level 1
Level 2
Vedere la pagina 95
1 2 ... 91 92 93 94 95 96 97 98 99 100 101 ... 141 142

Commenti su questo manuale

Nessun commento