ePages 6.10 - DE_EPAGES/Object/API/TLE/StandardHandler.pm

Package DE_EPAGES::Object::API::TLE::StandardHandler

Implements general TLE variables

Implements the format [webpath] for public file attributes.

Example
#Currency.Symbol  -> $
#System.StoreName -> Store
#StoreRoot        -> /WebRoot/Store
<img src="#ImageSmall[webpath]" />

Functions

CURRENCY
WITH_LANGUAGE

CURRENCY

Returns currency information by curreny id.

Syntax
#CURRENCY(#CurrencyID)
Example
#LOCAL("LocalCurrency", #CURRENCY("USD"))
  #LocalCurrency.Symbol
#ENDLOCAL
Return
#Currency (reference to hash)
currency information with following keys:
  • CurrencyID - alpha currency code (ISO 4217) (primary key)- char(3)
  • IsUsed - is currency used - bit
  • NumCode - numeric code of currency iso 4217 - int
  • Name - name of currency - varchar(255)
  • MinorUnit - decimals of minor unit (optional)- int
  • LeadCurrencyID - lead currency code (optional)- char(3)
  • Factor - factor lead to current (Currency = Lead * Factor) (optional)- numeric(20,10)
  • Symbol - default symbol of currency (optional)- nvarchar(5)
  • PosFormat - format for positive numbers, symbol in front of or behind number ('¤ x' or 'x ¤'), x will be replaced by number ¤ by currency symbol. (optional)- varchar(10)
  • NegFormat - format for negative numbers, symbol in front of or behind number ('-¤ x' or 'x ¤-'), x will be replaced by number ¤ by currency symbol. its only allowed to use '-' for negative numbers. (optional)- varchar(10)

WITH_LANGUAGE

Temporarily changes the language context of a template.

Syntax
#WITH_LANGUAGE(#LanguageID) ... #ENDWITH_LANGUAGE
Example
#LOCAL("LocalLanguage", #FUNCTION("GetLanguageByCode", "en"))
  #WITH_LANGUAGE(#LocalLanguage.LanguageID)
    <h3>#NameOrAlias (#LocalLanguage.Code3)</h3>
    <p>#Description</p>
  #ENDWITH_LANGUAGE
#ENDLOCAL
Input
#LanguageID (integer)
language id