---
title: "Configure Page properties data source in Advanced Table Viewer macro"
canonical: "https://support.appfire.com/space/TBL/3770810371/Configure+Page+properties+data+source+in+Advanced+Table+Viewer+macro"
format: markdown
---
> Macro (aura-html)

The Advanced Table Viewer macro can import **Page properties** data from pages that have any of the specified labels in a single space on the current Confluence site.

- Pages can have different property headers in the Page properties macro. The macro combines the properties from all matching pages into one set of table columns.
- The table includes a link to each page title.
- The macro can display Page properties data for up to 200 pages. If more than 200 pages match the specified labels, the table shows the first 200.

**Prerequisites**

- Add the Page properties macro, with the metadata you need, to each page.
- Add the page labels that you want to specify in the Advanced Table Viewer macro.

> 📝 - The macro displays only the Page properties of pages for which you have view permission.
> 📝 - The macro supports importing Page properties data only from a single space of the current Confluence site.

---

## Configure the Page properties data source in the Advanced Table Viewer macro

### Insert macro and configure Page properties data source

- In the Confluence page edit mode, insert the Advanced Table Viewer macro using the macro browser or the macro shortcut (Type / followed by the macro name).
- On the initial setup screen, click **Connect Data Source**.
- The *Select* *data source* dialog opens.
- To configure the Page properties data source, select **Page properties** from the *Select data connector *drop-down. By default, the CSV data connector is selected.
- Once you choose **Page properties**, the dialog displays the following fields.
  - **Select space**: The drop-down displays a list of spaces from the current Confluence site. By default, it selects the current space. Select the required space from which you want to import Page properties data.
  - **Select page labels**:
    - By default, this field displays the list of available labels from the chosen space.
    - You can select the labels you want and clear the ones you don't need. You must select at least one label.
    - If no labels are found, then the drop-down displays a message: *No matching labels in this space*.
  - **Search pages**:
    - To find pages that have the matching labels and contain the Page properties macro, click **Search pages**. A page can contain one or more matching labels.
    - If you change labels after you run a search, you will see the message: *Page labels changed. Search again to update the results.*

    - The macro performs the search and loads the count of pages found that contain the Page properties macro.

> 📝 - If the matching pages do not contain any Page properties data or if you do not have the required permissions, the macro displays an error.
> 📝 - If you do not have the permissions to view to the configured Page properties data in a Confluence page, the page view mode displays an access-restricted message.
> 📝 - If you don't specify any labels and run a search, the macro displays an error.
> 📝 - If you change the labels after running a search, a message appears, and the **Save** button is disabled. Run the search again to enable it.
> 📝 - If a page in the search has no readable properties, the macro excludes it, so the table can show fewer than 200 rows.
> 📝 - If the search returns properties for more than 200 pages, the macro displays a message to narrow the search to view page properties for specific labels.

- **Select columns**: This field displays the list of aggregated properties found on the matching pages as table columns. It also includes the page title as the first column. You can select, clear, and reorder column names. For details, see the **[Select and order columns](#Select-and-order-columns)** section.

### Select and order columns

You can remove, select, and reorder the column names as needed.

- Clear all selected columns
  - To remove all default column selections at once, click clear all (). After clearing, click the field and re-select column names in the required order.
- Remove a specific column
  - Next to the column name, click clear () to remove it from the selection.
- Select columns
  - Click the **Select columns** field and choose the column names from the list.
  - After you select the required columns, save the changes.

> ℹ️ The order in which you select the column names determines the column order displayed in the Confluence table. You can further reorder columns using [drag and drop](https://appfire.atlassian.net/wiki/spaces/TBL/pages/3398172705) feature in macro setup mode.

### Save and publish

- In the *Select data source* dialog, click **Save**.
- The macro opens in setup mode and displays the table with the page title, selected column names, and values.
- The first column is **Page title**, and the title links to the page. The rows are sorted by page title until the user sets another sort.
- In setup mode, you can also configure macro features such as column filtering, grouping, column calculations, reordering columns, row styling, search, row numbering, sorting, and download. Refer to [Set up the Advanced Table Viewer macro features](https://appfire.atlassian.net/wiki/spaces/TBL/pages/1765147138).
- To apply the configurations, click **Save**.
- The configured table appears in the Confluence page edit mode.
- **Publish** the page to view the table in the Confluence page view mode.
- Your Page properties data is now ready to view and analyze directly within Confluence.

> 📝 - The macro refreshes the table data on every page load.
> 📝 - If you want to do a manual refresh for the latest changes, click **Sync** (  ).
> 📝 - You can sync the table in setup mode, Confluence page edit mode, and Confluence page view mode.