MACROMEDIA CONTRIBUTE 3-DEPLOYING CONTRIBUTE Betriebsanweisung Seite 112

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 142
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 111
112
Serena® Collage® 5.1.3
Chapter 3 Design-Time Component Reference
Select Example 1: Deploying Content in
Multiple Languages
The example below displays unique text on a page, depending on whether a
language
metadata field for the deploy map that is used to publish the page is set to
english
or
danish
. If no value is defined for the
language
metadata field, then a third variable is
displayed ("
No language is displayed
").
By tying the output of the Select component to metadata or property values for a deploy
map, you can store variable versions of text in single web pages, and automate the
generation of language specific sites. If, for example, you create unique deploy maps for
english and spanish language versions of a site, you can then use the select component
wherever you need to store both an english and a spanish language version of text, as
select
Data field macro Specifies an asset property or metadata field, the value of
which will determine which content snippet to select. Possible
values include:
$node.FileName
$node.name
$node.assetid
$node.description
$node.MimeType
$node.Size
$node.CreateDate
$node.meta('
metadata field name
')
For a complete list of data field macros which you can use to
select an asset, see "Data Field Macro Reference" on page 23.
Property Value Description
<nexus:component classid="nexus/components/Select"
code="$nexusComponents"
select="$publishmap.meta('language')">
<nexus:select "english">
<h2>This page is written in english.</h2>
</nexus:select>
<nexus:select "danish">
<h2>Denne side er skrevet paa dansk.</h2>
</nexus:select>
<nexus:select>
<h2>This page is written in an unknown language.</h2>
</nexus:select>
<nexus:select "">
<h2>No language is selected.</h2>
</nexus:select>
</nexus:component>
Value of language field
determines which text
displays
If no value is defined for
the language field,
this message displays
If the value is set to
something other than
english
or
danish
,
this text displays
Seitenansicht 111
1 2 ... 107 108 109 110 111 112 113 114 115 116 117 ... 141 142

Kommentare zu diesen Handbüchern

Keine Kommentare