Skip to main content
Skip table of contents

Staging | Formula ATTRVALAUTOLANG

Description

This formula retrieves an attribute value in a defined language.

Formula(s)

PHP
{=ATTRVALAUTOLANG("Attribute";Formatted; Language IDs;"Prefix";"Suffix"))}
{=ATTRVALAUTOLANG("Attribute";"Medium"; Language IDs;"Prefix";"Suffix"))}

Result

  • String

Parameters

Parameter
Contents
Format
Default value
Explanation

Attribute

Attribute name or attribute ID

Attribute name: String

Attribute ID: Integer

 

 

Formatted

TRUE or FALSE

Boolean

TRUE

TRUE: Formatted

FALSE: Unformatted

Language IDs

Array of language IDs

Integer

[]

The array is used for defining the order of the language IDs.

Prefix

Optional prefix

String

MEDIUM_NONE

 

Suffix

Optional suffix

String

MEDIUM_NONE

 

Medium

Medium for which the value is to be returned

String

MEDIUM_NONE

Possible values:

  • MEDIUM_NONE

  • MEDIUM_TEXT

  • MEDIUM_HTML

  • MEDIUM_EXPORT

  • MEDIUM_EDITOR

  • MEDIUM_TRANSLATIONMANAGER

  • MEDIUM_MASSEDITOR

  • MEDIUM_API

  • MEDIUM_TABLEAPI

This parameter depends on the CSType implementation. Not every CSType supports all media.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.