News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Newly created tab, how to make this active?

Started by TuXAPuK, August 09, 2019, 08:06:04 PM

Previous topic - Next topic

TuXAPuK

On site "forum.rukilovolt.info" make'd new tab named as "Статьи"... But i have truble with active flag, how to make them "active" when page/subpage active?

Sir Osis of Liver

How did you add the button?  Code should look like this -



'test' => array(
'title' => 'test',
'href' => $scripturl . '?action=test',
'show' => true,
'sub_buttons' => array(
),
),


Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

TuXAPuK

<code php>
            'articles' => array(
                'title' => 'Статьи',
                'href' => $scripturl . '?action=article-list',
                'show' => true,
                'sub_buttons' => array(
                ),
</code>

Sir Osis of Liver

Try this -



            'article-list' => array(
                'title' => 'Статьи',
                'href' => $scripturl . '?action=article-list',
                'show' => true,
                'sub_buttons' => array(
                ),

Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters


Advertisement: