Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

How to reorder main Menu?

How can I add items and menu things here?

I'm using BetterBitter
Created by VrijVlinder|Version 1.2

Comments

  • Options
    steamsteam www.planamigo.org - #1 foro planes amigo
    edited May 2018

    I think you need to change your theme bittersweet\views\default.master.tpl

    <ul class="SiteMenu">
    ...

    Regards

  • Options
    whu606whu606 I'm not a SuperHero; I just like wearing tights... MVP

    You could take a look at this addon:

    https://open.vanillaforums.com/addon/addmenuitem-plugin

    I don't know if it works with 2.6.

  • Options
    RiverRiver MVP
    edited May 2018

    @fmOzilla said:
    How can I add items and menu things here?

    I'm using BetterBitter
    Created by VrijVlinder|Version 1.2

    Themes are either default.master using tpl template files OR php files in the views folder.

    Betterbitter
    this appears to be a theme that uses default.master.php in the views folder of the theme.

    you can use addlinks function and sort menu items via the default.master.xxx
    if the above plugin does not suit your needs.

    e.g.

    $this->Menu->AddLink('Home', T('Home'), '/');

    here is the function parameters.

    50          * @param $group 
    51          * @param $text 
    52          * @param $url 
    53          * @param bool $permission 
    54          * @param string $attributes 
    55          * @param string $anchorAttributes 
    56          */ 
    57         public function addLink($group, $text, $url, $permission = false, $attributes = '', $anchorAttributes = '') { 
    

    you can see examples in default.master.php

    whereas bittersweet uses a default.master.tpl

    some menu items can be sorted via the conf/config.php

    $Configuration['Garden']['Menu']['Sort'] = array('Home', 'Dashboard', 'Discussions', 'Questions', 'Activity', 'Conversations', 'User');

    depending on theme and version.

    here are two other useful addons...

    https://open.vanillaforums.com/addon/cssedit-plugin

    for tpl based themes...

    https://open.vanillaforums.com/addon/htmledit-plugin

    generally if you are modifying a theme it is better to clone and rename it for update purposes.

    you may want to look here as well

    https://open.vanillaforums.com/discussion/28420/frequently-asked-questions/p1

    https://open.vanillaforums.com/categories/tutorials

    Pragmatism is all I have to offer. Avoiding the sidelines and providing centerline pro-tips.

Sign In or Register to comment.