vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   How to Add Navbar Links to CMS/Blog (https://vborg.vbsupport.ru/showthread.php?t=316250)

Daniel 12-27-2014 09:23 PM

How to Add Navbar Links to CMS/Blog
 
Hi all,

When I try to add a link in the navigation menu to the blog/cms, I get this error:
Quote:

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

1 Attachment(s)
When you click to Edit the Section, the navbar is controlled by this area of the page

Attachment 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
HTML Code:

<vb:if condition="$link['type'] == 'link'">
Put this code under it and edit this code to suit your needs
HTML Code:

<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>



All times are GMT. The time now is 07:33 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01048 seconds
  • Memory Usage 1,720KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete