View Full Version : How to Add Navbar Links to CMS/Blog
Daniel
12-27-2014, 09:23 PM
Hi all,
When I try to add a link in the navigation menu to the blog/cms, I get this error:
You cannot add navigation elements to the Blog using the Navigation Manager, it has its own system for displaying links.
What's a boy to do? (I'm looking to add a search.php and private.php link to it)
Lynne
12-28-2014, 12:57 AM
I am able to add links to the Blog just fine via the Navigation Manager.
For the CMS, you need to add the links by editing the Section and then adding to the navigation there.
Daniel
12-28-2014, 02:16 AM
Cheers to helping me out. I was able to add a link to Blogs too.
For CMS I'm having a bit more trouble: how exactly do I add a link to the navbar in a section?
Lynne
12-28-2014, 03:25 PM
When you click to Edit the Section, the navbar is controlled by this area of the page
151395
If you are talking about adding non-articles/non-sections to the sub-menu, then you would need to modify the template directly.
To find the template to modify, do this - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code. (Sometimes the template is the one mentioned at the very top of the page source.)
Daniel
04-07-2015, 06:34 PM
Thanks for the help Lynn. Here's a fix for future people:
My issue: I was trying to add a custom link to the vBCMS pages. They don't allow you to do that, so do this instead:
My fix:
Go to navbar_tabs template
Find
<vb:if condition="$link['type'] == 'link'">Put this code under it and edit this code to suit your needs
<vb:if condition="THIS_SCRIPT == 'vbcms'">
<li id="{vb:raw sublink.name}"><a href="list.php?author/{vb:link member, {vb:raw bbuserinfo}}">My Posts</a></li>
</vb:if>
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.