Expanding menus for dummies
In exhibit, your differents pages (exhibit) are shared into categories. You can obtain that the links to the pages are collapse under the categorie name in the side menu, and that they appear when you click on the category name.
To obtain that :
First Step : Connect to your site management panel, then clic on “Réglage” (in French. So it may be “tuning” in English), and chose the “sample” Theme
Second Step : Download the expandingMenus.js file and up load it in yoursite/ndxz-studio/site/js/ directory
Link to download the file : www.rosscairns.com/downloads/expandingMenus.js
Third Step : Edit the file yoursite/ ndxz-studio/site/sample/index.php
Find lines with :
<script type='text/javascript' src='<%baseurl%>/ndxz-studio/site/js/expandingMenus.js'></script>
<script type='text/javascript'>
Duplicate the wole line, and in the second one replace : "cookies.js" by "expandingMenus.js"
Some lines further, after
$(document).ready(function()
{
setTimeout('move_up()', 1);
add :
// always start with zero and count from there
expandingMenu(0); expandingMenu(1); expandingMenu(2);
you should be carefull to keep the closing of the following brakets :
});
Warning : the first category of your side menu is numbered 0, the second is numbered 1, etc …
After modifiying this index.php file, then upload it in yoursite/ ndxz-studio/site/sample/ directory
Note: I'm posting this thread for bernache who originally wrote it to get some code things organized. Thanks bernache!