Expand Category Treeview Menu by default

Jan 31, 2010 at 11:34 AM


I would like to expand my treeview category menu by default. Would that be possible? jQuery or how to achieve this?


Jan 31, 2010 at 12:30 PM

Hi Thomas,

Have a look at the options on this page here (click the tab labelled "Options". You can use them in the backoffice to alter the way the menu behaves. You're probably wanting "collapsed: false".


Jan 31, 2010 at 2:55 PM

Hi Rob,

thanks for the quick and correct answer. The only problem you might want to change for the future is remove  the brackets in the current jqtreeview.code :
<script language='javascript' type='text/javascript'> jQuery(document).ready(function(){jQuery('#NBStoreTreeMenu').treeview({animated:'fast', collapsed: 'true', persist: 'location'});}); </script>

the collapsed: 'true' does work but collapsed: 'false' doesn't. it is collapsed: false without the brackets that does the trick. so maybe remove it by default so
<script language='javascript' type='text/javascript'> jQuery(document).ready(function(){jQuery('#NBStoreTreeMenu').treeview({animated:'fast', collapsed: true, persist: 'location'});}); </script>

just my 2 cents,


Feb 1, 2010 at 12:36 AM

ah yep, I see what you mean. It appears that any values that are boolean true or false don't have quote marks, whilst all other string values do need quotes.

I'll copy this as a work item.


Feb 1, 2010 at 12:47 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.