
AssetQuery
Components User's Guide
45
About the AssetQuery body
The display of asset information is specified in the AssetQuery body. The AssetQuery body
can display any standard data fields and metadata fields for an asset, or it can query for
the content from contribution asset fields. If more than one record is found in the query,
the body will be repeated, thereby generating a list of data.
The AssetQuery body can consist of three sections, an optional prelog, the data fields, and
an optional prolog:
<nexus:prelog>
<--HTML-->
</nexus:prelog>
<--HTML to display information about the assets, or content from
contribution fields-->
<nexus:prolog>
<--HTML-->
</nexus:prolog>
Prelog Section
The prelog section can optionally be used to define a header for a table which will display
the records from the query.
useoriginalassetid true
or
false
If you will use the
layout
property to generate
contribution documents, or to format alternate versions
of HTML assets, you can set the
useoriginalassetid
parameter to
true
to ensure that any components on
the pages which will be reformatted by the layout pages
will refer to the original assets when generating asset
information, rather than referring to the layout pages.
For example, if the
layout
property will generate
different layouts of assets that include the MetaTag
component, the
useoriginalassetid
property
ensures that each instance of the MetaTag component
displays the metadata for the correct asset. Otherwise,
the MetaTag component will display metadata for the
layout page itself, not the original asset which contains
the original MetaTag component.
For example, if the MetaTag component is defined on a
page called common.html, and you use the
layout
property to display the contents of common.html on a
new page, you must include:
useoriginalassetid="true"
to make sure that the MetaTag component displays the
metadata for common.html, and not the layout pages.
Property Value Description
Commenti su questo manuale