Basic Usage

Part 1: Create your template

Follow the guide Create a Simple PTC Template.

Part 2: Prepare your target page

  1. Add a PTC Create Pages Button to a page

    1. Select your template as the source page

    2. Don’t select a Target to add the new pages as subpages

  2. Add a PTC Default Value Macro to the same page

    1. For a placeholder you used in your template

    2. Select if you want to be able to edit the placeholder in replacement dialog

    3. Fill in the macro body with your default value

  3. Save

TIP:

The PTC Default Value Macro can also be placed on an ancestor/parent page of the page where the button is

Part 3: Instantiate the template

  1. Click on the button to copy your template

  2. Select your target and pages to copy if these options are still available

  3. Fill in Replacements for all placeholders left

    1. Placeholders that are editable will appear in the replacement dialog

    2. Placeholder that are not editable will be replaced automatically

  4. Click create

  5. The placeholder are now replaced

Improved Usage

A placeholder inside the Default Value Macro body allows you to dynamically set the default value


Part 1: Create your template

Follow the guide Create a Simple PTC Template.

Part 2: Create a second template

  1. Add a PTC Create Pages Button to a page (or as many as you like)

    1. … same as before

  2. Add a PTC Default Value Macro to the same page

    1. For a placeholder you used in your template

    2. Select if you want to be able to edit the placeholder in replacement dialog

    3. NEW: fill the macro body with a placeholder (e.g __project number__)

  3. Save

Part 3: Instantiate your second template

  1. Use copy page tree or create space to instantiate the template

  2. Select replacement values for the placeholder

TIP:

Part 3 can now be executed as many times as liked and the default values are always set automatically.

Part 4: Instantiate your primary template

  1. Use the button of the page you just created

  2. Now the default value for the placeholders are already set