Simple Machines Community Forum

SMF Development => Feature Requests => Applied or Declined Requests => Aiheen aloitti: solphatesforums - helmikuu 17, 2008, 10:16:03 IP

Otsikko: Navbar Editor
Kirjoitti: solphatesforums - helmikuu 17, 2008, 10:16:03 IP
It would be nice to have a navbar editor in the admin section.

That allows you to modify any theme's navbar without going through the code, because for some of us modding the code of a template ins't easy.
Otsikko: Re: Navbar Editor
Kirjoitti: 青山 素子 - helmikuu 17, 2008, 10:53:45 IP
Bit of a problem in 1.1 because the navigation bar is only in the theme, and not all themes support it.
Otsikko: Re: Navbar Editor
Kirjoitti: rsw686 - helmikuu 19, 2008, 03:30:32 IP
What would need to be done is a template system for the menu bar. I know on my forum my menu bar is completely custom. The way Coppermine gallery handles the menu bars is neat. The basic concept is this

$menu_template = '
<ul>
    {MENU HERE}
</ul>';

$menu_item_separator = '';

$menu_item_template = '
<li><a href="{LINK}">{TITLE}</a></li>';
Otsikko: Re: Navbar Editor
Kirjoitti: 青山 素子 - helmikuu 19, 2008, 04:46:58 IP
There is something similar in 2.0 so that all themes can get new menu items without editing the themes themselves.