Home > Contents > Index >
Template Tag TOC  |   Alpha TOC  |   Tag Family TOC  |   Purpose TOC  |   Annotated TOC  |   Index 

 

asset.addlocale

Add a locale to the currently loaded asset

Syntax

<asset.adddimension
        name="name of loaded asset"
       [dimensionid="id of locale to add"]
       [dimensionname="name of locale to add"]
    />

Attributes

name (required)
The name of the loaded asset to which the locale specified will be added.
dimensionid (optional)
The id of the locale asset that is to be added to the current asset. The dimension asset need not be loaded. Either dimensionid or dimensionname must be specified.
dimensionname (optional)
The name of a locale asset that will be added to the current asset. The dimension asset need not be loaded. Either dimensionid or dimensionname must be specified.

Description

Given an asset that is currently loaded, this tag allows users to add a locale to the asset. Once the locale has been added, the asset must be re-saved if the change is to persist.

Error Numbers

There are no possible errno for this tag.

Example

The following example demonstrates how to load an asset and add a locale with the ID of 42 to it.

    <asset.load name="myasset" type="Article" assetid="999"/>
    <asset.addlocale name="myasset" dimensionid="42"/>
    <asset.save name="myasset"/>

The following example demonstrates how to load an asset and adds a locale named en_US to it.

    <asset.load name="myasset" type="Article" assetid="999"/>
    <asset.addlocale name="myasset" dimensionname="en_US"/>
    <asset.save name="myasset"/>

See Also

asset.save

asset.adddimension

  Home > Contents > Index >

Oracle XML Tag Reference
Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved.