• This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

Page Nav

In /Plugin/Plugin.php you you define the template of the sub nav like so:

PHP:
    public static function extendNavTabs(array &$extraTabs, $selectedTabId)
    {
        $extraTabs['biblioteca'] = array(
            'title' => 'Biblioteca',
            'href'    => XenForo_Link::buildPublicLink('biblioteca'),
            'position'    =>    'middle',
            'linksTemplate'    =>    'biblioteca_subnav')
    }

You would than create the template in the admincp

Hope that helps!
So for your example, I would create the template biblioteca_subnav, the just place a link in the template, like so?

Code:
<a href="http://whatever.com">Whatever</a>
 
So for your example, I would create the template biblioteca_subnav, the just place a link in the template, like so?

Code:
<a href="http://whatever.com">Whatever</a>

You would want it to look like the rest by adding some markup to it:
HTML:
<ul class="secondaryContent blockLinksList">
<li><a href="#/">Link 1</a></li>
<li><a href="#/">Link 2</a></li>
<li><a href="#/">Link 3</a></li>
<li><a href="#/">Link 4</a></li>
<li><a href="#/">Link 5</a></li>
</ul>
 
Top Bottom