MACROMEDIA CONTRIBUTE 3-DEPLOYING CONTRIBUTE Guida Utente Pagina 57

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 142
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 56
Conditional
Components User's Guide
57
Banner Properties
Conditional
The Conditional component generates a javascript that redirects the user's browser to a
different page based on various possible conditions. This might be used as a top-level
page for a site, for example, that redirects a browser to the appropriate start page for the
user's language.
This component can redirect based on the following conditions:
OS
: The operating system on which the browser is running.
Language
: The localization of the browser.
Browser
: The type of browser that is executing the javascript.
Writing a Conditional Component
Add the following code to the body of the web page:
The following section describes how to define specific parameters, based on the condition
type.
Property Value Description
classid
Always set to
nexus/components/
Navbar
Points to the component class file inside the jar that is
needed to implement the component. This field is
required.
code
Always set to the path in Collage to the
nexusComponents.jar file, such as
"/System/Components/
nexusComponents.jar"
The archive where the component class file is stored.
By default, this is stored in:
/
root
/System/
Components/nexusComponents.jar
. You can also
set this property to:
code="$nexusComponents"
which will resolve to the correct path.
nodes Always set to
current
<nexus:component dwcomptype="Conditional" classid="nexus/
components/Conditional" code="$nexusComponents"
condition="[
OS
|
language
|
browser
]">
Parameters
</nexus:component>
Choose whether the
component will redirect
a browser based on OS,
language, or browser
Define specific parameters
Vedere la pagina 56
1 2 ... 52 53 54 55 56 57 58 59 60 61 62 ... 141 142

Commenti su questo manuale

Nessun commento