
Include Asset
Components User's Guide
75
ForceReference Example
The Sample site project, which gets installed with Collage, includes a sample file that uses
this component. This file is
/WebSite/Component_Demo/ForceReference.html
and its
location in Collage is shown below:
The ForceReference.html file contains this code:
<nexus:component classid="nexus/components/ForceReference"
code="$nexusComponents" dependency="/WebSite/Component_Demo/
deploy.txt">
</nexus:component>
If any changes are made to deploy.txt, the ForceReference.html page will be deployed,
regardless of what changes were made. However, changes to ForceReference.html will not
force the deploy.txt file to be deployed.
Include Asset
Use the Include Asset component to do one of the following:
Find an asset in the current project and copy it into the asset that contains the
component. This allows you to reuse standard content snippets without having to
paste them into multiple files.
Display the content of specific contribution fields from contribution assets. In this way,
you can easily reuse the content of contribution fields without having to copy and
paste that content into multiple assets.
Kommentare zu diesen Handbüchern