Displaying tabs in side panel
Vanilla 1.1.10
I'm trying to display the menu tabs in the side panel through a theme. I've taken the chunk of code that produces the tabs in \themes\mytheme\menu.php and have put it in \themes\mytheme\panel.php like this:
Cheers.
I'm trying to display the menu tabs in the side panel through a theme. I've taken the chunk of code that produces the tabs in \themes\mytheme\menu.php and have put it in \themes\mytheme\panel.php like this:
When a page is rendered, the html contains the navigation div and the ul tags but no list items. Clearly, $this->Tabs contains nothing or isn't set within the panel module. Is there something I need to do to populate the TAbs array?
echo '<div id="navigation">';
echo ' <ul>';
while (list($Key, $Tab) = each($this->Tabs)) {
echo ' <li'.$this->TabClass($this->CurrentTab, $Tab['Value']).'><a href="'.$Tab['Url'].'" '.$Tab['Attributes'].'>'.$Tab['Text'].'</a></li>';
}
echo ' </ul>';
echo '</div>';
Cheers.
0
Comments
I'm not sure I understand what's happening with the TablClass function.
Any thoughts?
Final code:
Well, I've enjoyed discussing this with myself. It's really helped me work through it and find a solution. Hope someone else finds it useful too.