Alternate Section Navigation Widget Template
This template will make your section navigation widget look like the other widgets on your CMS page. It always bothered me that the navigation widget looked so radically different than the other widgets.
What I did was created a custom template, and assigned that to the section widget. You should create one with the following code: Code:
<script type="text/javascript"> <!-- var IMGDIR_MISC = "{vb:stylevar imgdir_misc}"; var vb_disable_ajax = parseInt("0", 10); /* Start Sections Widget Configuration */ vbGlobal_SHOW_ALL_TREE_ELEMENTS_THRESHOLD = parseInt("{vb:raw show_all_tree_elements_threshold}"); /* End Seections Widget Configuration */ // --> </script> <script type="text/javascript" src="{vb:stylevar yuipath}/treeview/treeview-min.js"></script> <!-- start treeview css --> <script type="text/javascript"> if (window.loadVbCss) { loadVbCss("{vb:stylevar yuipath}/treeview/assets/skins/sam/treeview.css",true); } </script> <!-- end treeview css --> <!-- custom treeview styles defined at template: headinclude --> <!-- END VB Tree-Menu Implementation of YUI TreeView --> <div class="cms_widget"> <div class="block"> <div class="cms_widget_header"> <h3>Articles</h3><!-- You can change this to whatever you'd like to call the menu --> </div> <div class="cms_widget_content"> <div class="vb-tree-menu"> {vb:raw nodelist} </div> </div> </div> </div> <script type="text/javascript"> <!-- // Main vBulletin Javascript Initialization //vBulletin_init(); //--> initVbTreeMenus({vb:raw menu_static}); </script> You can see this in action at http://www.njpinebarrens.com Download No files for download. |
Similar Mods
vBulletin CMS Widgets Widget: Latest Articles In Section | vBulletin 4.x Add-ons |