MACROMEDIA CONTRIBUTE 3-DEPLOYING CONTRIBUTE Guida Utente Pagina 77

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 142
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 76
Include Asset
Components User's Guide
77
Manually
To manually insert the component in your own HTML editor:
1
Open the file to which you want to add the component.
2
Do one of the following:
3
To locate the file, include one of the following properties:
file="
path and filename
"
to define the exact location of the file, relative to
the HTML asset that contains the component. For example, if the component is on
a master page, the
file
property defines a path to the file, relative to the location
of the master page. Choose this option to always use the same file, relative to the
location of the master page.
relative="path and filename"
to define 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.
findfile="
filename
"
to have the component search 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.
For example, to find and insert the entire content of an asset called Copyright.html
which is located in a deploy folder called boilerplate, underneath the master page that
contains the component, the code might appear as follows:
<nexus:component classid="nexus/components/IncludeAsset"
code="$nexusComponents" file="boilerplate/Copyright.html"/>
4
Optionally, if you will use Include Asset to display information about or create a link to
the included asset, or insert the content from specific fields in a contribution asset,
If you want to... Then...
Insert the entire
content of an asset
Add the following to the point in the file where you want to
include the asset:
<nexus:component classid="nexus/components/
IncludeAsset" code="
path to the
nexusComponents.jar file
" [file="
filename
and path
" | findfile="
filename
"]/>
Insert information
about or link to an
asset
Add the following to the point where you want to insert
information or link to the asset:
<nexus:component classid="nexus/components/
IncludeAsset" code="
path to the
nexusComponents.jar file
" [file="
filename
and path
" | findfile="
filename
"]>
body
</nexus:component>
Vedere la pagina 76
1 2 ... 72 73 74 75 76 77 78 79 80 81 82 ... 141 142

Commenti su questo manuale

Nessun commento