ePages 7.23.0 - DE_EPAGES/SEO/API/TLE/TagHandler.pm

Package DE_EPAGES::SEO::API::TLE::TagHandler

Functions

GETGOOGLETLD
GETRATINGSIGN
LocaliseGooglePlacesURL
SHOPLANGUAGES_CURRENTFIRST

GETGOOGLETLD

Returns the top level domain for Google search for the given locale id. For example for "en_GB" this is "google.co.uk".

Syntax
#GETGOOGLETLD(#LocaleID)
Example
<a href="http://www.#GETGOOGLETLD("en_GB")/search?hl=#Code2&q=link:myshop.com">...</a>
Input
#LocaleID (string)
locale id
Return
TldUrl (string)
Google top level domain for the given locale

GETRATINGSIGN

Returns the unicode character to display depending on the rating class name.

Syntax
#GETRATINGSIGN(#RatingClassName)
Example
#GETRATINGSIGN(#SEOVars.AdvDescription.RatingClass)
Input
#RatingClass (string)
rating class
Return
Character (string)
character indicating the rating class

LocaliseGooglePlacesURL

Replaces the placeholder [[locale]] in the URL-String by the given LocaleID. The underscore in the LocaleID will be replaced by a hyphen.

Syntax
#LocaliseGooglePlacesURL(#URL, #LocaleID)
Example
#LocaliseGooglePlacesURL(#System.GooglePlacesRegisterURL, #Session.User.Locale.LocaleID)
Input
#URL (string)
the url to be adapted
#LocaleID (string)
locale ID
Return
$url (string)
the adapted url

SHOPLANGUAGES_CURRENTFIRST

Returns an array of the shop languages with the current MBO language as first element.

Syntax
#SHOPLANGUAGES_CURRENTFIRST(#Session.User)
Example
#LOOP(#SHOPLANGUAGES_CURRENTFIRST(#Session.User))
    #WITH_LANGUAGE(#LanguageID) ... #ENDWITH_LANGUAGE
#ENDLOOP
Input
#User (object)
user object
Return
$aSortedLanguages (ref.array.hash)
shop languages