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?
PHP Code:
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';
}