MACROMEDIA CONTRIBUTE 3-DEPLOYING CONTRIBUTE Guida Utente Pagina 79

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 142
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 78
Include Asset
Components User's Guide
79
Example 1: Including an Entire Asset
You can use the Include Asset component to automatically insert the content of one asset
into another asset. For example, you can create an asset which stores a text snippet that
can be reused by other assets, such as a copyright statement.
In the example below, the component inserts all of a asset called Copyright
Statement.html, which is comprised only of an HTML snippet:
<nexus:component classid="nexus/components/IncludeAsset"
code="$nexusComponents" file="Copyright Statement.html"/>
If Copyright Statement.html simply contains the following HTML snippet:
<p>
<font face="arial,helvetica,sans-serif" size="1">Copyright 2002
Serena</font>
</p>
Then the component will appear as follows:
This snippet could even include additional component tags, or javascript, or other, more
sophisticated syntax.
Example 2: Linking to an Included Asset
In this example, the component generates a link to a cascading stylesheet called
styles.css, and stores metadata information in an HTML comment. Because the Include
Asset component can search the current deploy folder and any deploy folders above the
folder for the file specified by the
findfile
property, you can use it to automatically
generate links to files in any section of a project. In this way, files that are standard for
each section of a site, such as stylesheets, don't need to be copied to each folder.
file
File name and path Specifies the location and filename of the file to include,
relative to the asset in Collage which contains the component.
For example, a master page.
findfile
File name Searches for the file in the current deploy folder, and any
deploy folders above it. If the component is on a master page,
the
findfile
property will search for the file in the deploy
folder that contains the asset to which the master page is
applied, not the deploy folder that contains the master page
itself. Choose this option to search the deploy folder structure
for any file with a matching name.
relative
File name and path Defines the exact location of the file, relative to the HTML
asset to which the master page that contains the component
will be applied. Choose this option to use locate the file
relative to the actual deployed asset itself, not relative to the
master page that contains the component.
Property Value Description
Vedere la pagina 78
1 2 ... 74 75 76 77 78 79 80 81 82 83 84 ... 141 142

Commenti su questo manuale

Nessun commento