
Data Field Macro Reference
Components User's Guide
23
Data Field Macro Reference
Data field macros are placeholders that you can define for specific information about
Collage assets. When you deploy a page that contains a component with data field
macros, Collage replaces the macros with the correct asset information.
For example, you can use macros to automatically insert an asset's filename, creation
date, or MIME type. You can also use data field macros to automatically generate and
insert URLs.
Why Macros are Useful
Data field macros allow you to define generic placeholders in components which you can
reuse on multiple pages. For each page that includes a component that uses macros,
Collage will automatically generate and insert the correct information.
Database
Query
Retrieves and displays records from an external SQL database. "Database Query" on
page 60
Force Reference Creates a deployment dependency between an HTML, ASP, JSP, or
PHP page and another file, ensuring that changes to the file result
in the deployment of the HTML, ASP, JSP, or PHP page.
"ForceReference" on
page 73
Include Asset Finds another asset in the project and inserts its content, or
generates information about or links to the asset.
"Include Asset" on
page 75
Masterpage
Body
Defines the location on a master page where you want Collage to
merge content. Wherever you insert the Masterpage Body
component, Collage will merge the content from assets that use
the master page when you preview or publish those assets.
"Masterpage Body"
on page 80
Metadata Places a piece of metadata in the page. "MetaTag" on page
81
Navigation Bar Generates links to other pages in the site, relative to the current
page. A button can be an image which includes the name of the
page linked to, or it can be plain text naming the page linked to.
"Navigation Bar" on
page 84
NavMap Retrieves information about each node in a site structure, which
you can then use to generate navigation menus to those nodes.
You can define any HTML or JavaScript in the NavMap component,
which will then be generated for every node in the structure when
you preview or deploy the asset that contains the component.
"NavMap" on page
95
Query
Navigator
Automatically creates a navigation bar which allows site visitors to
navigate the results from an AssetQuery component. For each page
that is included in the AssetQuery result, the Query Navigator
component can generate links to the next page, previous page, and
the first and last pages in the query results.
"Query Navigator"
on page 101
Select Display different content based on specific conditions such as
metadata values, or asset property values (such as filename and
asset name).
"Select" on page 107
WARFiler Automates the creation of Web ARchive (WAR) files for
deployment.
"WARFiler" on page
114
Component Description For details, see...
Kommentare zu diesen Handbüchern