I am using JA Business template. On some sections of my site i need to remove the top menu bar altogether.
Following JAT3 instructions to remove or move blocks, I deleted the line:
<block name=”mainnav” type=”mainnav” wrap-inner=”1″ main-inner=”2″></block>
This removes the menu from the site and ‘seems’ to work, but then If I turn on ‘Optimise JS Join & Minify & Compress’ in Admin, I get a JS error on the site which shows in the foot of Internet Explorer. Of course this also means that all other JS pop-ups in components such as Jomsocial, stop working too.
If I turn Optimise JS Off, everything works again.
It ONLY happens by removing this mainnav block. If I remove other blocks such as
<block name=”cpanel” type=”usertools/cpanel”></block> there are no errors and everything works fine.
So the question is, How can I safely remove this block:
<block name=”mainnav” type=”mainnav” wrap-inner=”1″ main-inner=”2″></block>
without encountering errors whilst using the Optimise JS option in admin.
The errors are:
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; InfoPath.2)
Timestamp: Sat, 21 May 2011 11:51:48 UTC
Message: Object expected
Line: 56
Char: 14
Code: 0
URI: /index.php?jat3action=gzip&type=js&file=t3-assets/jsce9e7.js
Message: ‘joms’ is undefined
Line: 145
Char: 1
Code: 0
Message: ‘joms’ is undefined
Line: 349
Char: 7
Code: 0