
Query Navigator
Components User's Guide
105
</node:next>
This example defines a button for an active link to the next page in the AssetQuery result
set. The
<a href="$node.url">
tag generates the link to the correct page. The button
will be a simple text link ("
Next
").
Image buttons simply include an image reference in the
<node>
tag, for example:
<node:next active>
<a href="$node.url">
<img src="next_button.gif" text="Next">
</a>
</node:next>
This example points to a button image called "next_button.gif". The text property in the
<img>
tag defines text that Collage will flatten onto the button image when the page that
contains the Query Navigator component is previewed or deployed.
Button Tag Reference
Define each of the buttons as described in the following table:
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
.
Button Code
Parent
<node:parent><a href="$node.url">
Image reference
or button text
</a>
</node:parent>
First active
<node:first active>
<a href="$node.url">
Image reference or button
text
</a>
</node:first>
First inactive
<node:first inactive>
<a href="$node.url">
Image reference or button
text
</a>
</node:first>
Last active
<node:last active>
<a href="$node.url">
Image reference or button
text
</a>
</node:last>
Last inactive
<node:last inactive>
<a href="$node.url">
Image reference or button
text
</a>
</node:last>
Next active
<node:next active>
<a href="$node.url">
Image reference or button
text
</a>
</node:next>
Kommentare zu diesen Handbüchern