---
title: "pageheader macro"
canonical: "https://support.appfire.com/space/CDML/650348817/pageheader%20macro"
format: markdown
---
> Macro (aura-html)


## Overview

> Macro (excerpt)
> 
> Add content to page header

The `pageheader` macro renders it's body content (wiki markup) in the context of the page or blog post that your workflow is applied.

> 📝 This macro is an alternative to the `header` (or `headertemplate`) parameter of the [workflow macro](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649662219).

## Where to use it?

Optional.

One `pageheader` macro can be added into a [workflow macro](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649662219).

## Parameters

| **Parameter** | **Required** | **Default** | **Notes** |
| --- | --- | --- | --- |
| *macro body* | :check_mark: |  | Header content:<br>- Wiki markup – see [Confluence Wiki Markup](https://confluence.atlassian.com/display/DOC/Confluence+Wiki+Markup)
- Can use any character set supported by your Confluence server – except some [reserved characters](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649859070).<br>The following macros can be used in the header:<br>> Macro (contentbylabel) |
| `visibility` |  | `contributors` | Who can see the header?<br>- `contributors` – users who can edit the page
- `readonly` – users who can view, but not edit, the page
- `all` – both `contributors` and `readonly` users<br>> Macro (contentbylabel) |

## Example

```plaintext
{workflow:name=Page Header}
   {pageheader}
      wiki markup to show at top of page
   {pageheader}
   {state:Example}
   {state}
{workflow}
```

<span style="color: #111111">You can also add the workflow page header using the workflow builder </span>[page layout editor](https://appfire.atlassian.net/wiki/spaces/CDML/pages/650248771).

![image](media://8e306e15-bfaf-4286-aeb3-31309269b881)

> ℹ️ Use the dropdown menu options to <span style="color: #111111">set who can see the footer based on Confluence user permissions.</span>

## All examples

> Macro (contentbylabel)

## See also

[Workflow Authoring Guide](https://appfire.atlassian.net/wiki/spaces/CDML/pages/648611901)

- [Notifications](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649957056)
- [Events](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649759655)
- [Triggers](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649563178)
- [Actions](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649858941)

[Reporting Guide](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649070833)

- [Workflow Macros](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649954318)
- [Confluence Macros](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649824255)