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

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

Functions

GETGOOGLETLD
GETRATINGSIGN
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

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