Add Mockup Menu When Using Theme Builder
I am using a Theme Builder theme for a customized look on our wiki site. The add mockup menu link is not available because Theme Builder uses a custom menu definition file that uses menu macros. How can I add the mockup menu that is visible in the default Confluence theme, but not in the custom theme? Thanks
2
people have this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
-
Inappropriate?If you are using Adaptivist's Theme Builder, you'll have to manually add a "Add UI Mockup..." link to the edit menu. Here's how:
1. Go to Theme Builder's Layout Manager (administration / themes / configure theme / layout manager)
2. Go to the Menus tab and click "Edit..." at the bottom
3. Go to the Edit Menu tab and add the following right under the "Comment..." compound-menuitem:
{menuseparator}
{compound-menuitem:webui|location=system.space.actions|key=com_balsamiq_confluence_plugins_mockups_addmockup|caption=Add UI Mockup...}
4. Save your layout
That's it! you will now see a nice "Add UI Mockup..." link in your edit menu.
-
Inappropriate?Peldi,
This is how I thought it would be solved. Unfortunately, the syntax provided doesn't seem to work. Below is the relevant code from the menu definition
{builder-show:permission=spaceadmin}
{menu}Edit
{submenu}{menuicon:add2}New
{compound-menuitem:newpage|icon=document_add|caption=Page...}
{menuseparator}
{compound-menuitem:newnews|icon=news_add|caption=News...}
{menuseparator}
{compound-menuitem:newspace|icon=earth_add|caption=Space...}
{menuseparator}
{compound-menuitem:newcomment|icon=note_add|caption=Comment...}
{menuseparator}
{compound-menuitem:webui|location=system.space.actions|key=com_balsamiq_confluence_plugins_mockups_addmockup|caption=Add UI Mockup...}
Is the syntax correct? Thanks for your help
-
Inappropriate?Hi Emory, I changed the status of this thread from Answered and added it to our list of things we need to look at. We'll check the code/syntax you provided and let you know.
I’m themey.
-
Inappropriate?This worked for me! Thanks!
-
Inappropriate?This doesn't appear to work for me either, tried adding the provided code to the edit menu, however no menu gets created after saving & reloading.
-
Inappropriate?You could add a link alias to the "add mock up link". To do this go to builder admin/link alias tab. I've added some (updated) screenshots that might help. And the link to the docu for this is here : http://www.adaptavist.com/display/Bui...


-
Inappropriate?Another alternative is to import all non bundled links into your menu through the webui-list macro, eg:
{menubar}
{menu}My Menu
...
...
{wikimenu}{webui-list:system.content.add|separators=true|bundled=false}{wikimenu}
{menu}
{menubar}
The above code will import all plugin plugin links from the system.content.add location. You can also use the webui-list macro for completely replicating the atlassian menus, eg:
{menubar}
{menu}Browse {menuicon:navigate_close}
{wikimenu}{webui-list:system.space|separators=true}{wikimenu}
{wikimenu}{webui-list:system.browse|separators=true}{wikimenu}
{menu}
{menu}{menulink:profile}%fullname%{menulink} {menuicon:navigate_close}
{wikimenu}{webui-list:system.user|separators=true}{wikimenu}
{menu}
{menubar}
{menubar}
{compound-menuitem:edit|caption=Edit|icon=pencil2|size=22px}
{menu}{menuicon:add2|size=22px}Add
{wikimenu}{webui-list:system.content.add|separators=true}{wikimenu}
{menu}
{menu}{menuicon:gear|size=22px}Tools
{wikimenu}{webui-list:system.content.action|separators=true}{wikimenu}
{menu}
{menubar}
NB: for jQuery driven links (eg: restrictions, link-to-page etc) builder 4.0.2 or later is required -
Thanks Alain. That's exactly what I was after.
Loading Profile...




EMPLOYEE

