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 ID or attribute name |
Attribute ID: Integer Attribute name: String |
|
|
|
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:
This parameter depends on the CSType implementation. Not every CSType supports all media. |