What is a PTC Placeholder?
A PTC Placeholder is like a variable that will be replaced when the page is copied with the Page Tree Creator.
Any placed placeholder on the page is replaceable with a desired value during the copy procedure.
source page (Before Instantiation)
new created page
Meeting Notes __date__
Meeting Notes 2021-08-12
This is for the project __nr__.
This is for the project P08.
Author: @a user
What kind of PTC Placeholders are there?
Placeholder will be replaced with text
Placeholder will be replaced with one or multiple user mentions
Placeholder will be replaced with a date macro
It’s also possible to perform operations (+/-) on the date by adding % followed by the operation (e.g. __date%+2w__).
Calculations can be performed with the following units:
By adding %+1m to the date placeholder, it will add one month to the selected date.
A calculation could look like this:
Page before replacement | Image
Page after replacement | Image
Placeholder will count up with each instantiation
Placeholder will be replaced with a link and a link description
Placeholder will be replaced with a page reference
Placeholder will be replaced with text that can be multiple lines
This is a description
Placeholder will be replaced with a single or multi selection of some dropdown values
Dropdown : A,B,C →
Placeholder will be replaced with text that has to match a chosen regular expression
Regex: ([A-Z])\w+ →
Placeholder will be replaced automatically. For all possible default placeholders see below
Where can I use the PTC Placeholder?
Placeholder can be used everywhere in you Confluence page: as title, in the body or in labels. You can also use it in our own macros for example in our Page Create Button Macro and Space Create Button Macro.
When creating new spaces, placeholders in the space description and in space categories can be replaced, too.
PTC Placeholder marker settings
A placeholder is recognizable with his front-marker and tail-marker (the default marker are two underscores “__“ they are changeable in the admin section General Setting
Note: Admin permission needed
PTC Placeholder default placeholder
The Page Tree Creator provides some default placeholders that you can use, these placeholders are:
Inserts the current user
17 Jun 2019
Inserts the current date
Inserts the current time
Inserts the current country
Inserts the current year
Inserts the current day of the week, e.g. Monday, Tuesday...
Inserts the current day within the month, e.g. 15
Inserts the current week number, e.g. 29
Inserts the current month as string, e.g. April
Inserts the current month as number, e.g. 8
__ProjectNumber__ Project __ProjectName__
Inserts the title of the template page
Page Tree Creator Template Space
Inserts the space of the template page
Inserts the version of the template page
Inserts the user, which created the template page
Inserts the user, which has most recently edited the template page
12 Jun 2019
Inserts the modification date of the template page
Page Tree Creator
Inserts the title of the space the original page belongs to
Inserts the key of the space the original page belongs to
Page Tree Creator Documentation
Inserts the title of the space the new page is created in
Inserts the key of the space the new page is created in