![]() |
Alternate Section Navigation Widget Template
1 Attachment(s)
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"> You can see this in action at http://www.njpinebarrens.com |
Thanks, nice........
|
Just what I was looking for. I just wish the directions were clear and concise enough for me (and others) to figure out how to do it. :confused:
|
very nice
|
Quote:
Create a new template, call it vbcms_widget_navigation and paste the above code within it. Create a new static HTML widget, which will be your new navigation. Configure the widget and change the template name to the one you created, in this example: vbcms_widget_navigation That is it. You will now load a default widget style with the JS section menu inside of it. It will obviously inherit your default style for your widgets. |
I appreciate you adding the detail but I guess this just isn't meant to be used by me. :(
|
So, actually what I did was create a new template:
AdminCP > Styles & Templates > Style Manager, and in the dropdown for your style, select "Add New Template." Name your template whatever you'd like, and paste the code in my first post into the text box. Hit save. Now, you want to edit the template that the widget that draws that menu uses to use your new custom template. AdminCP > VBulletinCMS > Widgets and configure the widget for the menu (it will say Section Navigation - JS Advanced). In the popup box you'll change the name of the template to the name that you gave your new custom template. |
To get rid of the plus and minus images that show up in the menu, the easiest way I found is to replace the images in images/misc/trees with 0 byte files. You'll want to change all of the minus-on, minus-off, plus-on, and plus-off images.
|
Thanks for the extra directions ZippySLC but I can't get it to work. I've redone it so many times I don't need to read your steps any more.
|
Sorry!
|
I see the widget on my page but there is nothing in it.
Do i have to add some code in the widget when i made it? |
1. Create a New template and add the code above to it.
2. Call it vbcms_widget_navigation 3. Go to widgets 4. Click 'Configure' for Navigation 5. Change the template name from vbcms_widget_sectionnavext_page to vbcms_widget_navigation edit: If the widget margins are 'off' change the vbcms_widget_margin settings in StyleVars |
Thanx AURFSCAN for taking the time to give me this explanation!
That worked like a dream for me!! This looks so much better then the original setion nav! Thanx! |
Anyone have any thoughts/instructions on how to do the same for the Categories box please?
|
reserved
|
Did it, I like it, Thanks!
My only question is though, I see on your site, njpinebarrens.com that you have the section list expanded as a default when I view it. How in the heck can I do that on mine! I changed the option on the widget configuration, but it didn't seem to do anything. What is yours set at? |
Nice Installed. How do you change the background color though of the widget? I don't know where to find the code to edit. Thank you.
|
to stop the expand and collapse when you click a label just remove this from clientscript/yui/treeview/treeview-min.js
Code:
B.on(H,"click",this._onClickEvent,this,true); |
All times are GMT. The time now is 05:03 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|