Search the Confluence 4.1.x Documentation:

Index
Downloads (PDF, HTML & XML formats)
Other versions

This documentation relates to Confluence 4.1.x
If you are using an earlier version, please view the previous versions of the Confluence documentation and select the relevant version.
Skip to end of metadata
Go to start of metadata

The Macro Browser allows you to browse through Confluence's extensive range of macros and to preview them before adding them to your page.

The Macro Browser provides access to all available macros in your Confluence site, including any user macros and plugins that your administrator has added and made visible to all.

Accessing the Macro Browser

You can access the Macro Browser whenever you edit a page, blog post or comment.

To access the Macro Browser:

  1. Log in to Confluence, if you have not already done so.
  2. Edit a page or blog post.
  3. Click where you want to insert the macro.
  4. Either choose Insert > Other Macros, or type '{' and choose Open Macro Browser.

Each macro is represented in the Macro Browser by its icon, its name and a brief description of its function.

Screenshot: Macro Browser

Finding a Macro

The Macro Browser provides two methods for finding a macro:

  • Browsing by category
  • Searching

You can also simply type '{' to see a list of suggested macros. For more details, see Using Autocomplete.

Browsing by Category

Each macro is assigned to one or more categories. Click a category name to see the macros in that category.

Screenshot: Macro Browser List Restricted by Category

Searching

Enter a word or words into the search field at the top of the Macro Browser. As you start typing, the macro list is filtered to show only those macros whose name or description matches the characters you have entered.

Screenshot: Macro Browser List Restricted by Word Search

Adding a Macro to a Page or Blog Post

When you choose a macro and add it to a page or blog post, you may need to configure the macro's parameters.

To choose and configure a macro:

  1. Access the Macro Browser and browse to the required macro as described above, if you have not already done so.
  2. Click the required macro to choose it. The Macro Browser window changes to the 'Edit Macro' mode with a preview pane on the left and parameter pane on the right.
  3. If necessary, modify the macro's parameters in the parameter pane. Some parameters allow auto-completion.
  4. Click Refresh to preview the effect of your changes to the macro's parameters.
    (info) Any parameters marked by an asterisk (*) are mandatory and must be set before you can preview or insert the macro.
  5. Click Insert to add the macro to the page or blog post.

Not all macros can be previewed in the Macro Browser. This is often the case with macros that require the page to be saved first to render correctly, such as the Table of Contents Macro, or macros that do not generate output, such as the Anchor Macro. Nevertheless, you can still use the Macro Browser to browse for these macros and set their specific parameters before inserting them into your page.

Editing a Macro

You can edit a macro that has already been added to a page or blog post, modifying the parameter data and previewing the changes.

To edit a macro:

  1. Edit the page or blog post containing the macro you wish to edit.
  2. Click on the macro placeholder and choose Edit.
  3. Modify the macro's parameters in the parameter pane. Some parameters allow auto-completion.
  4. Click Refresh to preview the effect of your changes to the macro's parameters.
    (info) Any parameters marked by an asterisk (*) are mandatory and must be set before you can preview or insert the macro.
  5. Click Save in the Macro Browser to save your changes.

To leave the Macro Browser at any time, click its Cancel button or simply press the 'ESC' key.

Screenshot: Editing an Existing Macro with the Macro Browser in 'Macro Preview' Mode

Macro Browser Smart Fields

If a macro's parameter requires the entry of a single username, space key or page title, the macro browser provides an 'auto-complete' feature to help you enter the correct value. Use the up- and down-arrows on your keyboard to move up and down the dropdown list of matching items and select the appropriate item. This feature functions similarly to the Quick Navigation Aid when searching Confluence pages.

Screenshot: Macro Browser Smart Fields

Macro Placeholders

Macro placeholders are displayed in the editor where you have added a macro to the page.

When editing a page, you can:

  • Double-click a macro placeholder to open the Macro Browser (or click on the placeholder and choose Edit), where you can edit the macro's parameters.
  • Select a macro placeholder to cut, copy and paste the macro.

Related Topics

Working with Macros

Take me back to the Confluence User's Guide.

Labels:
  1. Sep 24, 2009

    Anonymous

    When using internationization, the macro browser throws errors very frequently whenever a user enters the edit mode, see http://jira.atlassian.com/browse/CONF-15946

    The only workaround I found was to disable the macros that have curly brackets in their description (one of it is deprecated anyway) which seems what is causing the error.

  2. Sep 28, 2009

    Anonymous

    Hey,

    I think the macro browser' lightbox dialog is just awesome. I am wondering, if there is a possibility to access other pages like this or in other words, is there a lightbox macro or some way to trigger the "showlightbox" event?

    On the other hand I find myself unable to include / launch the macro browser from another "position", for example from the right sidebar in the Theme Builder. Have you any ideas?

    Regards, Jérôme

  3. Oct 13, 2010

    Hello

    Is there a way to edit the categories of the macro browser. Or even add new categories. We would like to offer our staff a lot of user-macros through the macro browser but it gets quickly confusing.

    thanks

    1. Jun 01, 2011

      Not sure if you can add new categories.
      To put your macro in an existing category(ies) , in your atlassian-plugin.xml do like below.
      If it has no parameters, have an empty parameters element or otherwise in the macro editor, an input will be shown.
      Also, if the parameters element is missing then the macro is not displayed in the corresponding category(ies) (bug, at least in 3.4.9).
      If you use the category "hidden-macros" the macro shows up in both "All" and "Hidden" in 3.4.9. This looks like a bug.
      More examples in existing plugins.

      I am still looking for a way to have the descriptions and parameters given in multiple languages in this file. If someone has a clue....

  4. Dec 21, 2010

    Anonymous

    Hi,

    does anyone knows why there is no "Insert" button to see (Firefox 3.6.13 and Google Chrome 8.0.552)

    Regards, Alex

  5. Jan 08, 2011

    It would definitely be a great feature-add to allow categories and items in the Macro Browser to be turned off - since the current browser gets so confusing to users because it has so many confusing elements in it that it overwhelms the users.

    Here is a temporary workaround I have found to hide certain categories in the macro browser. It involves editing includes/js/macro-browser.js and then reminifying the file to includes/js/macro-browser-min.js (because macro-browser-min.js then gets sent to the browser inside of batch.js):

    At Line 674 add the following code and uncomment the lines for the sections you want to remove:

  6. Feb 16, 2011

    Anonymous

    Hello,

    I'm trying to locate the gadget Two Dimensional Filter Statistics to add from the Gadget macro but it does not seem to be in the list. How do I add this gadget to a page?

    What I'm trying to do is get the numbers from various filters I've set up into an excel spreadsheet (Google Doc). Could you help me with how this can be done?

    Thanks,

    Rajeshwari

  7. Jun 23, 2011

    Anonymous

    We have probably a big problem with this plugin on Confluence PROD environment. It causes our instance to run out of resources. We were recommended from Atlassian Support to get in contact with the Plugin developer.
    Can somebody from the development team have a look on the following incident?

    https://support.atlassian.com/browse/CSP-63521

    Many Thanks,

    Adrian Jankovych