[All Adaptavist Apps]

Page tree

Ive noticed in the menu tab of the layout editor of TB 3+, I can only interact with the View and Edit menus. This makes it impossible to add custom menu links on the same level as View and Edit. Any way around this? I'd rather not have to bury my custom links under View and Edit.

thanks!

12 Comments

  1. Unknown User (amoran)

    You edit the panel content ... by default the custom menus are in the 'menu' panel, however you can place a {menubar} macro anywhere you like!

    The {viewmenu} and {editmenu} macros are just conveniences that allow for the display of a default set of links that provide access to basic confluece functionality ... if you install builder 3.3.3 and import the sample layouts (tool on the backup tab of builder admin), and then edit the confluence210 layout you will see an example of a layout which doesnt even use the {viewmenu} and {editmenu} macros at all - since it is duplicating the base confluence style, it is able to re-use the confluence menu structure through the webui-list macro

  2. Unknown User (sfwinter)

    thanks Alain for the quick response. I'm still a bit confused though. By default, the theme has Home, View and Edit navigation links with appropriate sublinks. I am trying to add more to the primary nav without necessarily removing Home, View and Edit. So my space's primary nav menu would be something like Home, View, Edit, About, Contact, etc.... I know how to write the correct wiki code, I just do not know how to add it to the menu panel. I can add it to the body panel by editing a page, but I want this to be the global nav menu for the entire space. Make sense?

    1. Unknown User (amoran)

      You should be able to find more information about that here.

      1. Unknown User (sfwinter)

        I've gone through this page.

        I just dont understand where to put the code...

        1. Unknown User (amoran)

          Go into the Layout Manager, select the layout you want to edit or create a new one, select the Layout Tab click on the menu panel then in the Panel Editor edit the Panel Content, you should see something like this:

          {table:width=100%|cellpadding=0|cellspacing=0|border=0}
            {tr}
              {td:valign=middle}
                {menubar}
                  {menuitem}{menulink:home}Home{menulink}{menuitem}
                  {viewmenu}
                  {editmenu}
                {menubar}
              {td}
              {td:align=right|valign=middle}
                {search-box}
              {td}
            {tr}
          {table}
          

          Try changing it to appear something like this

          {table:width=100%|cellpadding=0|cellspacing=0|border=0}
            {tr}
              {td:valign=middle}
                {menubar}
                  {menuitem}{menulink:home}Home{menulink}{menuitem}
                  {submenu}My Submenu
                    {menuitem}{menulink:home}Home{menulink}{menuitem}
                    {menuitem}{menulink:home}Home{menulink}{menuitem}
                    {menuitem}{menulink:home}Home{menulink}{menuitem}
                    {menuitem}{menulink:home}Home{menulink}{menuitem}
                    {menuitem}{menulink:home}Home{menulink}{menuitem}
                  {submenu}
                  {viewmenu}
                  {editmenu}
                {menubar}
              {td}
              {td:align=right|valign=middle}
                {search-box}
              {td}
            {tr}
          {table}
          
          1. Unknown User (sfwinter)

            Alain, this is exactly what I am looking for. Problem is, all of the "Content" buttons in the panel editor are grayed out. Is this an administrative fix I can make?

            1. Unknown User (gfraser)

              I assume you're using the DEFAULT layout - it's read-only (everything in it is hard-coded in the plugin) - you'll need to create a new layout based on it and edit that layout instead.

              1. Unknown User (sfwinter)

                I am not using the default. I am using a layout that was originally based on the default, and is not read only. I dont know how to create a layout that wasn't originally based on the default. Is that possible?

                thanks!

                1. Unknown User (gfraser)

                  It might be permissions based - you'll need to have permission to edit layouts (global permissions in Builder admin) and also on the layout itself (permissions tab in layout manager). From memory, the default global permission is for users in the confluence-adinistrators group.

                  1. Unknown User (sfwinter)

                    You are correct. Global Permissions is set to confluence-admins, of which I am part of the group. Any other ideas? Was I correct in creating a new theme based on the default layout?

                    1. Unknown User (amoran)

                      Guy is correct, that sounds like a permissioning issue .. in this case layout level permissions ... if that link doesnt shed any light, please create an issue at http://tracker.adaptavist.com and attach a backup of your layout to the issue.

                      1. Unknown User (sfwinter)

                        works now.. thanks!