Custom JS Variables
I am trying to write a selector that spits bunch of custom JS variables. As author uses frames, those variables are not available. But publish seems to fine as there are no frames. How does CQ.WCM or CQ_Analytics objects are available? How I can I achieve the same thing in my selector js.jsp file. I appreciate your detailed response. thank you.
Selector example (/content/xxx/en/home.html, head will generate <script type="text/javascript" src="/content/xxxx/en_US.globalconfig.js"></script>
page/basePage/globalconfig.js.jsp
{code}---------------------
<%@include file="/apps/fishersci/components/shared/global.jsp" %>
<%
%>
var globalCQConfigs = window.globalCQConfigs ||{};
// design path
globalCQConfigs.publicRootDir = "${publicRootDir}";
globalCQConfigs.pageLocale = "${pageLocale}";
globalCQConfigs.localePath = "${localePath}";
---------------------