Network Macro
The Network macro displays a list of Network activity on a Confluence page or blog post. You can specify the user whose network activity you wish to show. These interactions include the users that the specified user is following or users who are following the specified user. The Network macro shows each listed user by their profile picture. It also provides a choice of two themes and the ability to limit the number of users in the list.
Screenshot: Network macro
Using the Network macro
To add the Network macro to a page:
- In the Confluence editor, choose Insert > Other Macros
- Find and select the required macro
Speeding up macro entry with autocomplete: Type { and the beginning of the macro name, to see a list of suggested macros. Details are in Autocomplete for links, files, macros and mentions.
To edit an existing macro: Click the macro placeholder and choose Edit. A macro dialog window will open, where you can edit the parameters of the macro.
Parameters
Parameters are options that you can set to control the content or format of the macro output. Where the parameter name used in Confluence storage format or wikimarkup is different to the label used in the macro browser, it will be listed below in brackets (example
).
Parameter | Default | Description |
---|---|---|
Username | Current user's username | The username of the Confluence user whose network interactions you wish to show. If no username is specified, then current user's (that is, your) network interactions are shown. |
Mode | following | Determines which users are listed, with respect to the specified user:
This parameter is unnamed in storage format and wikimarkup. |
Theme | full | Determines how the user's network is displayed:
|
Maximum Results
| No limit imposed up to a maximum of 30 | Restricts the number of users displayed. If the number of users exceeds the specified maximum, then a Show All link is provided. This link leads to the specified user's Network view, showing the complete list of network interactions. |
Disabling the Network macro
The Network macro is provided by the 'network' module in the 'Profile Macros' plugin. To remove the macro from your site, you can disable the module in the plugin. See Disabling and enabling apps.
Code examples
The following examples are provided for advanced users who want to inspect or edit the underlying markup for a Confluence page.
Macro name: network
Macro body: None.
Storage format example
<ac:structured-macro ac:name="network">
<ac:parameter ac:name="username">
<ri:user ri:userkey="12345678912345678912345"/>
</ac:parameter>
<ac:parameter ac:name="max">10</ac:parameter>
<ac:parameter ac:name="theme">full</ac:parameter>
<ac:parameter ac:name="">followers</ac:parameter>
</ac:structured-macro>
Wiki markup example
{network:followers|username=admin|max=10|theme=full}