ePages 6.10 - DE_EPAGES/Presentation/API/TLE/WebRootHandler.pm

Package DE_EPAGES::Presentation::API::TLE::WebRootHandler

Implements the TLE variables #WebRoot and #SiteRoot.

Functions

BASEURL
tle

BASEURL

Returns the base URL for switching between HTTP and HTTPS protocols. Adds all cookie values to the PATH_INFO part. XML contained in the base URL is quoted to prevent XSS.

Syntax
#FUNCTION("BASEURL", #Site, #SSL)
Example
<a href="#FUNCTION("BASEURL", #Shop, 1)?ObjectPath=#Shop.Path[url]&amp;ViewAction=ViewRegistration">Become a customer</a>
Input
#Site (object)
Site object
#SSL (string)
true to use https:, otherwise the http: protocol is used

tle

#WebRoot returns the virtual directory name for static files: "/WebRoot".

Syntax
#WebRoot
Example
#MENU("Tabs")
  #INCLUDE(#Template)
  #IF(#IsActive)
    <a href="#WebRoot/Doc/Help/{LanguageID}/#HelpFileTopic">Help</a>
  #ENDIF
#ENDMENU