Using the SharePoint List Macro (v 1.9)
You can use the SharePoint List macro {sp-list} to display a SharePoint list on a Confluence wiki page. The macro can display most SharePoint list types and document libraries.
Screenshot: The SharePoint List macro in Confluence
On this page:
Usage with the Macro Browser
The Macro Browser is a graphical menu that allows you to view the list of available Confluence macros and add them to the current page or blog post.
To insert the SharePoint List macro into a page,
- Edit your Confluence page and choose 'Insert' > 'SharePoint List'.
- Set the macro parameters to your requirements.
- Click 'Insert' to add the macro to the page.
You can also insert macros via autocomplete. For more information, see Using Autocomplete.
These instructions are for Confluence 5.x. In earlier versions of Confluence you can find the SharePoint List macro in the Macro Browser.
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 |
---|---|---|
Site | No default | The Site parameter is the name of the SharePoint site as specified in the SharePoint Administration settings. See the Confluence SharePoint plugin configuration guide. Note that this value is case-sensitive – use the same capital and lower-case letters as in the plugin configuration screen. In the Confluence 'Macro Browser' you will see a dropdown showing all the SharePoint sites configured in your Confluence wiki for you to choose from. |
List | No default | Use this parameter to specify the name of the list that you want to display in Confluence. Marketing/Documents |
View | No default | Use this parameter to reference a view in SharePoint for controlling the appearance of the list in Confluence. By creating or customizing a view in SharePoint, you can control the following aspects of the list's display:
|
Folder | No default | Use this parameter to view the contents of a folder or sub-folder within the list. To display the contents of a root (top-level) folder, just type the name of the folder. To display the contents of a sub-folder, enter the path to the sub-folder. For example, to show the sub-folder "Team A" in a folder called "Team Documents", the Folder parameter would be entered as: Team Documents/Team A |
Examples
Example 1: Document Library with Custom View
What you need to type | What you will get |
---|---|
{sp-list:Site=<mysharepointalias>|List=Confluence Requirements|View=Support Team} |
Example 2: Sub-folder in a Contacts List
What you need to type | What you will get |
---|---|
{sp-list:Site=<mysharepointalias>|List=Confluence Team|Folder=Developers/SharePoint Developers} |
Example 2: Links List in a sub-site
What you need to type | What you will get |
---|---|
{sp-list:Site=<mysharepointalias>|List=Developers/Important Links} |