vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Creating new navbar tabs for different CMS sections (https://vborg.vbsupport.ru/showthread.php?t=266945)

anolian 07-16-2011 03:51 PM

Creating new navbar tabs for different CMS sections
 
EDIT: don't worry - I solved it eventually! Cheers

Hi

I've looked a lot for a solution to my problem, but all those I have found seem to solve only half of it. Hopefully someone can show me what I'm missing please.

I want to use vbCMS. As well as forums and blogs, I want several content sections with their own navbar tabs (equivalent to Home, Forums, Blogs, etc) which link to differnet sections in the CMS. I want the tabs to remain highlighted while the user remains in that section of my site or any of its subsections.

Effectively, I want to create a new section in the CMS as the same level as the "Home" section. In most CMS, this would be a simple requirement.

Unless I'm missing something, all the VB mod solutions I've seen involve writing a condition using the THIS_SCRIPT variable. However, since THIS_SCRIPT is the same for all vbCMS content, it doesn't allow tabs to link to different sections WITHIN the CMS.

If I can't create a section at the same level as "home" then I need to be able to write a condition which depends on the current section, not the current script (eg - "this_script = XXX && this_section = YYY).

Is there any way to do this ?? I'm amazed it isn't a basic option within vbCMS.

TIA for any assistance anyone can offer!

Cheers, Mike


All times are GMT. The time now is 03:35 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
  • Page Generation 0.00961 seconds
  • Memory Usage 1,704KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)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