Project

General

Profile

Bug #19850 ยป headerData-before-includeJS.txt

Administrator Admin, 2009-01-19 00:09

 

# First print this in the HTML HEAD
page.headerData {
10 = COA
10 {
wrap = <script type="text/javascript">var APP = new Object;|</script>
# APP.language
10 = TEXT
10 {
data = TSFE:sys_language_uid
stdWrap.wrap = APP.language = '|';
stdWrap.required = 1
}
}
}

# ... so in base.js we can use APP.language
page.includeJS {
base = fileadmin/web/scripts/base.js
}
    (1-1/1)