|
Whenever you add a new page you do not have to prepare it from scratch. Instead, you can base your new page on a template, which is essentially a page with pre-populated content.
Templates may be written in regular Confluence markup, or using special markup if you wish to define form fields to be filled in. Some examples:
In Confluence, there are two places to store your templates:
Here is an example:
Important Plugins For TemplatesTwo popular plugins that expand on template behaviour are the Zones Plugin and Scaffolding Plugin. Below is a comparision:
RELATED TOPICS
Take me back to the Confluence User Guide. |
Except where otherwise noted, content in this space is licensed under a Creative Commons Attribution 2.5 Australia License.



Comments (13)
Mar 03, 2008
Mark DiFilippo says:
Hello, Is there a way in using add-page:template that a parameter such as title...Hello, Is there a way in using add-page:template that a parameter such as title=@self be used so that when the user clicks on this add-page link, the new page that gets created already has the name of its parent page populated in the title field thus allowing the user to only have to add a prefix or suffix to this title to keep it unique within a given space? I hope this request makes sense. Thanks
Mar 03, 2008
David Peterson [CustomWare] says:
Not exactly. You can use {link-page:name=%content:title% - Something Else|templa...Not exactly. You can use {link-page:name=%content:title% - Something Else|template=...}, or put any other report-style data into the title (eg. '%global:current time > yyyy-MM-dd%', '%data:My Field%'), etc. What you really want is to be able to specify {add-page:prefix=%content:title%|template=...} which doesn't exist yet. I'm not sure if there is a feature request for this yet, but it would seem like a good idea. I think the main reason it doesn't exist yet is making it work simply with non-live templates, which use Confluence's built-in template system.
Mar 04, 2008
Mark DiFilippo says:
Thanks for your quick reply David. I will investigate the feature request.Thanks for your quick reply David. I will investigate the feature request.
Mar 10, 2008
Barbara Key says:
Is there a way that I am not aware of that would allow me to attach files to my ...Is there a way that I am not aware of that would allow me to attach files to my template?
Mar 10, 2008
Choy Li Tham says:
Hi Barbara, Unfortunately, Confluence does not support this feature currently. ...Hi Barbara,
Unfortunately, Confluence does not support this feature currently. However, there is an improvement request being tracked at the following link:
The improvement request above stated that Confluence should support the functionality to add attachment in templates. If you are keen on this improvement, please cast a vote to increase its popularity and add yourself as a watcher for future updates. Also, you may want to add a comment to the improvement request to truly reflect the importance of this improvement.
Regards,
Choy Li
Apr 10, 2008
Anonymous says:
Can a template be configured so that when a page is created from it, that page a...Can a template be configured so that when a page is created from it, that page automatically becomes the child of "Home" in the space?
Apr 11, 2008
Tony Cheah Tong Nyee says:
Hi there, An Idea I can think of is to have Create Page Macro defined in the te...Hi there,
An Idea I can think of is to have Create Page Macro defined in the template. The Create Page macro allows defining a specific parent page for every page being created using the macro. For information regarding the usage of the create-page macro, please see:
If I have misinterpreted your question, please further clarify for better understanding.
Cheers,
Tony
Jan 21
Anonymous says:
Hi all, is there a way to allow the user to upload an image while completing a ...Hi all,
is there a way to allow the user to upload an image while completing a template during a page creation and then showing the uploaded image whe the page is created?
I am looking for something like (IMAGE|image)
Thanks a lot in advance!
Feb 11
Azwandi Mohd Aris says:
I am afraid that this is not possible yet, even in the Scaffolding plugin. If yo...I am afraid that this is not possible yet, even in the Scaffolding plugin. If you are keen on this feature, feel free to raise a feature request at http://jira.atlassian.com.
Mar 04
Anonymous says:
Is there a way to specify a label in a template, so that all pages created with ...Is there a way to specify a label in a template, so that all pages created with that template have the same label?
Mar 04
Komathi Krishnan [Atlassian] says:
Hi, While you working on a template, you can specify the labels by the edit lab...Hi,
While you working on a template, you can specify the labels by the edit label function at the bottom of the page. This function allows you to add the labels while creating a template. If the template contains labels, the template labels will be automatically included in the new page created using that template. Refer Adding a Template for more information.
Hope that helps!
Cheers,
Komathi
May 27
Bridget Maloney says:
Any idea why this is happening? I am getting an error when creating a page...Any idea why this is happening? I am getting an error when creating a page from a template that uses variables, when I go to "Insert Variables" it removes me from the current space I am in. It seems to be happening on the variable insert, because if I do a template that doesn't use variables, it works fine. Also, these are space templates as opposed to global. This was working before, not sure what changed?
(Updated : it looks like the value of the hidden field, spaceKey, is changed to "Space 1,Space 1" after inserting the variables - why would this happen? And why now? We didn't do any updates to the Confluence install or anything?)
Here are the steps I follow to create a page:
1. Space 1 Home > Add > Page
2. Select a Page template to start from > select template
3. Put some values into the fields and select "insert variables" (Note that in the upper left corner, it currently says "Dashboard > Space 1 > Create Page")
4. The page loads in the wiki editor with the correct template and variables but the upper left corner now just says "Dashboard > Create Page"
5. Saving brings me a page that says "Page Not Found" ...
Thanks!
-Bridget
Jul 01
Yulia Egorova says:
Hello! I am using templates for creation typical pages and i am interested i...Hello! I am using templates for creation typical pages and i am interested if there is any way to put commented text in template, so that i can provide some guidlines what information to put in different sections and this commented text will not be shown on page. Something like comments that you add in code.
Or maybe you know some other way to provide guidlines and help to users, while they are creating page out of template?
Add Comment