MACROMEDIA CONTRIBUTE 3-DEPLOYING CONTRIBUTE Guida Utente Pagina 59

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 142
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 58
Conditional
Components User's Guide
59
Conditional Properties
Conditional Example 1
The example below redirects different browser applications:
<nexus:component dwcomptype="Conditional" classid="nexus/components/
Conditional" code="$nexusComponents" condition="browser">
<PARAM name="ie" value="index_ie.html">
<PARAM name="ns" value="index_ns.html">
<PARAM name="default" value="index_allbrowsers.html">
</nexus:component>
If Internet Explorer is the browser application, the browser is re-directed to
index_ie.html
. If Netscape is the browser application, the browser is redirected to
index_ns.html
.
Conditional Example 2
The example below redirects browsers to either an English language or German language
home page:
<nexus:component dwcomptype="Conditional" classid="nexus/components/
Conditional" code="$nexusComponents"code="$nexusComponents"
condition="language">
<PARAM name="en" value="eng_site/home_english.html">
<PARAM name="de" value="german_site/home_german.html">
</nexus:component>
Property Value Description
classid
Always set to
"nexus/
components/Conditional"
Points to the component class file inside the jar that is
needed to implement the component. This property is
required.
code
Always set to the path in Collage
to the nexusComponents.jar file,
such as
"/System/Components/
nexusComponents.jar"
or set
to
code="$nexusComponents"
Refers to the archive where the component class file is
stored. This property is required. By default, this file is
stored in:
/
root
/System/Components/
nexusComponents.jar.
You can also set this to
code="$nexusComponents."
condition "OS"
,
"language"
, or
"browser"
Specifies the condition to switch upon. This property is
required. Additional parameters in the body of the
component can then determine where the browser should
be redirected to, when certain conditions are met. See
the next section.
name
String Use this property with the
<PARAM>
tags. If the condition
matches the value of this string, the browser is redirected
to the URL in the
value
attribute.
value
Path Use this property with the
<PARAM>
tags. If the condition
matches the
name
, this specifies the path to the page to
which the user is redirected.
Vedere la pagina 58
1 2 ... 54 55 56 57 58 59 60 61 62 63 64 ... 141 142

Commenti su questo manuale

Nessun commento