anolian
03-19-2013, 07:59 PM
Hi
I have created tabs in the Navigation Manager which point to CMS sections.
To ensure the tab is selected after it is clicked I am using the folloiwng logic attached to the set_navigation_tab_vbview hook:
if (intval($_GET['r']) == sectionId) $root = 'tab_identity';
This works fine initially, but as soon as I navigate to an article or subsection within the selected section the tab is no longer selected.
So is there a way to detect which section any article is in, and set the tab based on that?
(I know I could add the tabid to the URL but I prefer not to if possible.)
Thanks very much for any advice, Mike
I have created tabs in the Navigation Manager which point to CMS sections.
To ensure the tab is selected after it is clicked I am using the folloiwng logic attached to the set_navigation_tab_vbview hook:
if (intval($_GET['r']) == sectionId) $root = 'tab_identity';
This works fine initially, but as soon as I navigate to an article or subsection within the selected section the tab is no longer selected.
So is there a way to detect which section any article is in, and set the tab based on that?
(I know I could add the tabid to the URL but I prefer not to if possible.)
Thanks very much for any advice, Mike