PTC Placeholder
Standard Placeholders
The placeholder-marker is configurable in the Page Tree Creator settings. In the standard configuration they are double dollars:
$$placeholder$$
When using the Page Tree Creator, any placeholder from the source page tree/template is displayed in the replacement form and will be replaced with the user input
Default Placeholders
Default Placeholders can be inserted like normal placeholders, but get replaced automatically since the value is already fixed, they do not appear in the replacement dialog.
Default Placeholder | Description |
---|---|
$$Current_Date$$ | Place the current date |
$$Current_Time$$ | Place the current time |
$$Current_Year$$ | Place the current year |
$$Current_WeekDay$$ | Place the current week day, e.g. Monday, Tuesday... |
$$Current_Day$$ | Place the current day within the month, e.g. 15 |
$$Current_Week_Number$$ | Place the current week number, e.g. 29 |
$$Current_Month_Text$$ | Place the current month as string, e.g. April |
$$Current_Month_Number$$ | Place the current month as number, e.g. 8 |
$$Template_Title$$ | Place the title of the template |
$$Template_Space$$ | Place the space of the template |
$$Template_Version$$ | Place the version of the template |
$$Source_Space_Title$$ | Inserts the title of the space where the original page is |
$$Source_Space_Key$$ | Inserts the key of the space where the original page is |
$$Target_Space_Title$$ | Inserts the title of the space where the new page is created |
$$Target_Space_Key$$ | Inserts the key of the space where the new page is created |
$$Current_User$$ | Insert current user |
Placeholder Formats
If you want to use a date picker in the replacement form, you can add a %d at the beginning of your placeholder. It needs to look like this example:
$$%d Start date$$Replace $$ with your configured Placeholder Markers and % with your configured Format Marker.
Type | Placeholder Formats | Placeholder Formats with marker | Example in Placeholder | Description |
---|---|---|---|---|
Date picker | d | %d | $$%d Start date$$ | Auto complete field format for confluence dates |
Link | l | %l | $$%l Homepage$$ | Auto complete field format for confluence links (not implemented yet; will be added in the next release) |
Multiline | ml | %ml | $$%ml Long Text$$ | Multi-line inputfield |
Singleline | sl | %sl | $$%sl Short Text$$ | single-line inputfield |
Required | r | %r | $$%r Required Placeholder$$ | Required inputfield |