ePages 6.17.13 - DE_EPAGES/Presentation/API/TLE/TemplateHandler.pm

Package DE_EPAGES::Presentation::API::TLE::TemplateHandler

Functions

ATTRIBUTEVALUE

ATTRIBUTEVALUE

Returns the value of #Attribute if it is defined. Otherwise returns the translation for keyword #AlternateKey in the cartridge #Cartridge. If #ReplaceTLE is true, the value is processed as template in the context of the object #Object. Use this flag with caution, because it has strong performance and security implications.

Syntax
#ATTRIBUTEVALUE(#Object, #Attribute, #AlternateKey, #LanguageID, #Cartridge, #ReplaceTLE)
Example
#ATTRIBUTEVALUE(#Shop, "AcceptTacText", "AcceptTac", #LanguageID, "DE_EPAGES::Order", 0)
Input
#Object (object)
object
#Attribute (string)
alias of attribute
#AlternateKey (string)
keyword to translate if attribute is not defined
#LanguageID (integer)
language id
#Cartridge (string)
cartridge where translation is defined
#ReplaceTLE (boolean)
replace TLE variables
Return
#AttributeValue (boolean)
value for attribute if defined, otherwise translated keyword