Many macros can be converted to storage format using the Confluence conversion that happens when a page with wiki markup is saved, See David Simpson's blog for more information on that process.
For deprecated ThemeBuilder macros that don't convert using that method we will be listing their equivalent HTML or storage format in this page.
When working with HTML or storage format in the ThemeBuilder panel editor you do not need to use the HTML macro.
So, for example, this wiki markup
The align macro should be replaced with an HTML span (for inline items) or div (for block items), together with a CSS class that is added as a style in ThemeBuilder Custom CSS. Adding the styling as a class means it can easily be reused for any HTML element that needs to be centred.
Then add in the ThemeBuilder Custom CSS
In ThemeBuilder 4 and earlier there were macros to help create a dropdown menu. When rendered these macros created their equivalent HTML elements and this is the key to translating wiki markup menu macros to storage format.
Tip: You can add valid HTML directly into any ThemeBuilder storage format panel.
We have documented how to add resources in ThemeBuilder that will create a dropdown menu that looks similar to the one that was produced by the deprecated menu macros, and will refer to those instructions as part of this guide.
First we will cover the HTML equivalent of each component and then describe how to combine them.
Note: The storage format version of the menulink macro is dependant on the function required.
|Macro Name||Wiki Markup||HTML||Comment|
The Id is not required as it was with the wiki markup version but you may want to keep it in the parent <div> or the <ul> if you have styles associated with that Id.
The classes in the <div> are needed for the dropdown functionality.
To External or Hard Coded Location
|Note: for Confluence pages you should use the <ac:link> macro as described below, or if you need to make use of ThemeBuilder flag logic you can use the Link macro.|
To Confluence Page
For Confluence pages always use the Confluence link function because it keeps pages linked even if they are moved. You can create these links by adding a link into a Confluence page then copying the storage format for the link.
Tip: Add a list menu on a Confluence page using the standard editor methods and then include or import that page into your menu.
To Relative Page
|Use the Page Navigation macro to create relative links.|
To Home Page
|The Panel Sitehome macro has options to link to the dashboard, site home and space home.|
Site or Page functions
|For Confluence functionality you should convert menulink macros to single web-items or grouped web-sections using the destinations listed from Web Ui Links - Confluence 5.|
Using some of these examples we can create a dropdown menu with a combination of HTML and storage format.
Working example of a ThemeBuilder style dropdown menu that imports a standard Confluence list of links from another page.