View Full Version : How to make CMS article highlight in tab
HM666
02-12-2016, 07:56 AM
Ho do I make a CMS article be highlighted in a certain tab other than the main CMS home tab. I have a tab that I have created in the Navigation Manager and I'll have several articles that fit under that tab and I need them to have that tab highlighted when you are viewing them. The articles are all part of one section and this one section would all be highlighted under this one tab.
HM666
02-19-2016, 12:03 PM
I found some code that works for this in some notes from awhile back. The only problem is the breadcrumb does not seem to work as it should.
Screen Shot #1: This is how it should be after clicking the top tab"Our Work" you see the bread crumbs that is highlighted as "Our Work". Its a section in the CMS. But when I click on the breadcrumb of "Our Work" shown then the result is screen shot #2. It highlights the "Home" tab instead of the "Our Work" tab. I have everything else sorted but that.
Here is the code I'm using, how do I include the breadcrumbs in this?
if (defined('VB_ENTRY') && VB_ENTRY == 'content.php')
{
if (isset($_REQUEST['r']) && preg_match('|^category/(\d+)-\S+$|', $_REQUEST['r'], $match))
{
$nodeid = $match[1];
}
}
else if (THIS_SCRIPT == 'vbcms')
{
$nodeid = $vbulletin->nodeid;
}
if (isset($nodeid) && in_array($nodeid, array(113,114)))
{
$root = 'tab_ndcx_897';
}
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.