The Page Properties macro

There is one macro I want to emphasize a bit more. The Page Properties macro, also known as the metadata details macro, is a little beauty.

The Page Properties macro enables you to embed data on a page and then display that information in a tabular form on another page. The Page Properties macro can be placed upon as many pages as you like, and you can use the Page Properties Report macro to display all the data.

An example, which we will implement, is customer contact information where every customer has a page with contact details, using the Page Properties macro. Then on an overview page, we will display all the customers contact information in a table.

To create customer details pages, perform the following steps:

  1. Create a Sales & Marketing space for this exercise, or use a test/sandbox space if you have one available.
  2. In the new space, create a page called Customers Overview.
    1. In the body, add the macro Page Properties Report.
    2. In the macro properties, use the label customer-contact-details.
    3. Click on Save to save the page.
  3. Create a new page as the child of the Customers Overview page.
    1. Use your customer name as title.
    2. Insert the Page Properties macro.
    3. In the body of the macro, create a table with two columns and four rows.
    4. Enter some contact details in the table:

      NameFord Prefect.

      PositionManaging Directory.

      Email[email protected].

      Phone317-822-2752.

    5. Give the page a label customer-contact-details.
    6. Click on Save to save the page.
  4. Repeat this step for a couple of customers. (This is a great example on where to use a template.)

So now we have a couple of pages with customer information, looking similar to the following screenshot:

The Page Properties macro

If we now browse back to our Customer Overview page we created earlier, we should see a table with our customers. As with all tables in Confluence, you can sort the table by the columns.

Note

The columns are ordered alphabetically and not as you specified in the Page Properties macro. If you want to reorder the columns, adding a number to them is a good trick.

The Page Properties macro

Note

The table generated by the Page Properties Report macro can also be used as input for other macros like the Charting macro.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.21.46.78