target - If set to 'edit', once the page is created the user will be prompted to enter any template variables, and then taken to the edit screen rather than the 'view' screen.
title - A static title to be used (cannot be used with prefix, postfix, or prompt). This title can contain the following parameters - %parenttitle%, which will insert the title of the parent page, and %ident%, which will insert the lowest number needed to make the page title unique. This allows you to create numbered child pages without user prompting.
Fixed a bug that I introduced in 1.1 that meant that if you used the create-page macro twice on the same page and they both had prespecified titles, all links would use the title parameter from the first one.
Being able to use an image with the createpage macro is a much needed feature. M...
Being able to use an image with the createpage macro is a much needed feature. My users are asking if links can be buttons but I have to tell them no, you can't have that. Seems kind of odd for a system that is used to create web pages...
One of the things I do is make daily pages of certain system information. It is ...
One of the things I do is make daily pages of certain system information. It is all templated, but I'd like to set the title to some varient of todays date, like 2007-02-16. Would it be possible to add a few date paramaters (YYYY, MM, DD) to the title option?
This is now possible with the {link-page} macro in the latest version of the Linking Plugin. Something like this:
{link-page:%content:title% - %global:current date > date:yyyy-MM-dd% - %global:current user > user:full name%|template=Expenses}You expenses for today{link-page}
Has the "linkpage" macro also an analogous option to the "create page"...
Has the "link-page" macro also an analogous option to the "create page" macro's title option?
Because that's exactly what I need:
This title can contain the following parameters - %parenttitle%, which will insert the title of the parent page, and %ident%, which will insert the lowest number needed to make the page title unique. This allows you to create numbered child pages without user prompting.
The only sad thing is, that the create page macro (even with the target=edit option) opens the source code of the scaffolding template and not the editable scaffolding forms.
Is there a possibility to get directly to the editable form mask?
This macro does not seem to work with Version: 2.5.4 Build:#809. It will prompt ...
This macro does not seem to work with Version: 2.5.4 Build:#809. It will prompt you for a page title, but if you enter any spaces (to separate words) and click OK it simply refreshes the page and fails to take you to the newly created page.
Using createpage to attempt to create a page with the same name as another space...
Using create-page to attempt to create a page with the same name as another space page fails silently. This is the problem with the comment above about spaces in the page name, and has nothing to do with spaces in the page title. It might be nice to have a non-silent failure.
I have a createpage macro that uses a static title. Once the page is created, an...
I have a create-page macro that uses a static title. Once the page is created, any subsequent clicks on the create-page link keep you on the same page. Anyway for it to take you to the created page? We won't have to update the page to replace the create-page with a static link then.
Alternatively, is there a way to add logic around that link?
I am using the createpage macro in combination with confluence templates which a...
I am using the create-page macro in combination with confluence templates which are using
variables (eg. @VAR1). Is it possible to predefine the values of these variables within the
create-page-macro?
eg.:
create-page:template=customer|addspace=false|target=edit|VAR1=11111|VAR2=customer a|prompt=Please enter the customername}Click Here to add a new customer
create-page}
If not, do you know some other way to accomplish this?
Its actually part of the repository metadata, I havent been creating tags so I h...
Its actually part of the repository metadata, I havent been creating tags so I hadnt added it to the repo metadata (I dont think there is a way of specifying an overall source link, only links to each tag).
If you have made changes, be sure to update the repository metadata and add yourself as a contributor
Using the createpage macro & Scaffolding, how can I get directly to the Scaffold...
Using the create-page macro & Scaffolding, how can I get directly to the Scaffold editing view? (Not the Wiki markup, but rather the editable template)
Boilerplate takes me to view the template and I have to then click the Edit tab.
Tried the create page macro with a template in my own personal space. The f...
Tried the create page macro with a template in my own personal space. The form data is not held (ie there is no "insert variable" button) so the page gets created with nothing in it.
Hopefully an easy question.. is there a way to have the macro JUST create the pa...
Hopefully an easy question.. is there a way to have the macro JUST create the page, and NOT take the user to either edit or view, and instead just stay on the page where the macro was invoked? I'm working with the Check-list macros, and am looking for an easy way to create empty pages by just entering a title, but not providing any other details.
Is it possible to 'save' the edited form of a temple without going into the wiki...
Is it possible to 'save' the edited form of a temple without going into the wiki markup page and clicking on 'save'? This is more intuitive for the user, who might get confused at seeing the mark-up and not properly save the form after creating a page. For example, can the user simply 'insert varibales' and then the form is automatically saved in the space?
It's a great plugin. We use it quite often. But there is a small bug in createpa...
It's a great plugin. We use it quite often. But there is a small bug in createpage.js, the javascript function "escape()" is not suitable for encoding URL address, you should use a javascript function "encodeURI()". It's very very very important to be compatible with all charsets and browsers.
So instead of:
document.location=url+escape(name)+postfix;
use:
docu
Comments (42)
Dec 05, 2006
Sean E. Kennedy says:
Is there any way to use an icon as the macro button?Is there any way to use an icon as the macro button?
Dec 05, 2006
Alain Moran says:
\ !myicon.png!\{createpage:whatever}Unable to render embedded object: File (myicon.png) not found.{createpage}
Dec 07, 2006
Sean E. Kennedy says:
I tried this, but couldn't get it to work. Here's the markup: !table.png! ...I tried this, but couldn't get it to work. Here's the markup:
{create-page:template=PAS_glossary_table|target=edit|prompt=Enter name of table.} !table.png! {create-page}Here's the result:
Dec 09, 2006
Alain Moran says:
Could you try the following: TEST \ \!table.png! \ TEST And then paste everyt...Could you try the following:
----TEST
{create-page:template=PAS_glossary_table|target=edit|prompt=Enter name of table.} !table.png! {create-page}
----TEST
And then paste everything, including the TEST comments.
Jul 16, 2007
Kevin Umbach says:
Being able to use an image with the createpage macro is a much needed feature. M...Being able to use an image with the createpage macro is a much needed feature. My users are asking if links can be buttons but I have to tell them no, you can't have that. Seems kind of odd for a system that is used to create web pages...
Feb 16, 2007
Jeff Heinen says:
One of the things I do is make daily pages of certain system information. It is ...One of the things I do is make daily pages of certain system information. It is all templated, but I'd like to set the title to some varient of todays date, like 2007-02-16. Would it be possible to add a few date paramaters (YYYY, MM, DD) to the title option?
Feb 16, 2007
David Peterson says:
This is now possible with the \This is now possible with the {link-page} macro in the latest version of the Linking Plugin. Something like this:
{link-page:%content:title% - %global:current date > date:yyyy-MM-dd% - %global:current user > user:full name%|template=Expenses}You expenses for today{link-page}Jul 10, 2007
Russell Warren says:
The link to the docs for that {{linkpage}} macro are broken. So are pretty much ...The link to the docs for that link-page macro are broken. So are pretty much all the ones that google tells me about.
Russ
Jul 10, 2007
David Peterson says:
Sorry the location for the Linking Plugin has moved since that comment it is now...Sorry - the location for the Linking Plugin has moved since that comment - it is now here. Details for the 'link-page' macro are in the 'Macros' tab.
Sep 11, 2007
Robert Tosch says:
Has the "linkpage" macro also an analogous option to the "create page"...Has the "link-page" macro also an analogous option to the "create page" macro's title option?
Because that's exactly what I need:
The only sad thing is, that the create page macro (even with the target=edit option) opens the source code of the scaffolding template and not the editable scaffolding forms.
Is there a possibility to get directly to the editable form mask?
Sep 11, 2007
Alain Moran says:
You should be using the boilerplate=SCAFFOLDNAME parameter, not the target= para...You should be using the boilerplate=SCAFFOLDNAME parameter, not the target= param
Sep 12, 2007
Robert Tosch says:
Hmm, that doesn't work :( Now you'll get directly the view of the created...Hmm, that doesn't work
Now you'll get directly the view of the created page with the blank scaffolding items without the edit step.
I've a template titled "Requirement" with Scaffolding code.
My create-page macro is now:
{create-page:title=Test%ident%\|boilerplate=Requirement}Create a new Requirement{create-page}Sep 19, 2007
Robert Tosch says:
@Alain: Can you give me an example. I really need this feature combined with the...@Alain: Can you give me an example. I really need this feature combined with the scaffolding template.
Oct 09, 2007
Robert Tosch says:
@Alain: I'm still struggling with the issue, described in my post from Sep 12. :...@Alain: I'm still struggling with the issue, described in my post from Sep 12.
Do you have any ideas? I'm using Confluence v2.5.7 and Scaffolding plugin v2.3-dr7
Thanx a lot!
Oct 09, 2007
Alain Moran says:
Create page has only been tested with scaffolding v1.Create page has only been tested with scaffolding v1.
Jul 19, 2007
Joaquin Obieta says:
This macro does not seem to work with Version: 2.5.4 Build:#809. It will prompt ...This macro does not seem to work with Version: 2.5.4 Build:#809. It will prompt you for a page title, but if you enter any spaces (to separate words) and click OK it simply refreshes the page and fails to take you to the newly created page.
Jul 19, 2007
Joaquin Obieta says:
https://support.atlassian.com/browse/CSP10338https://support.atlassian.com/browse/CSP-10338
Jul 19, 2007
Alain Moran says:
Unfortunately I cant view that issue, issues for create page should be filed her...Unfortunately I cant view that issue, issues for create page should be filed here:
http://jira.adaptavist.com/browse/CREATE
I have just converted this over to maven2 and tested it on 2.5.3 and cant seem to find a problem with it, what markeup were you using?
Jul 20, 2007
John Knight says:
Using createpage to attempt to create a page with the same name as another space...Using create-page to attempt to create a page with the same name as another space page fails silently. This is the problem with the comment above about spaces in the page name, and has nothing to do with spaces in the page title. It might be nice to have a non-silent failure.
Jul 20, 2007
Alain Moran says:
at what point does it fail? Does it attempt to fwd you to the view page? Does ...at what point does it fail?
Does it attempt to fwd you to the view page?
Does it fail to link?
Could you create an issue here:
http://jira.adaptavist.com/browse/CREATE
And mark it with the version of the plugin that you are using.
Aug 02, 2007
Apurva Kothari says:
I have a createpage macro that uses a static title. Once the page is created, an...I have a create-page macro that uses a static title. Once the page is created, any subsequent clicks on the create-page link keep you on the same page. Anyway for it to take you to the created page? We won't have to update the page to replace the create-page with a static link then.
Alternatively, is there a way to add logic around that link?
Thanks.
Aug 02, 2007
Alain Moran says:
Why are you using createpage anyway? From the sounds of things a standard confl...Why are you using create-page anyway?
From the sounds of things a standard confluence link would give you the same functionality.
Aug 03, 2007
Apurva Kothari says:
i used the linkpage macro instead and got what i needed. thanks for the tip. \\i used the link-page macro instead and got what i needed.
thanks for the tip.
Sep 07, 2007
M Dhivya says:
Hi Apurva, i have jus faced thid issue. but i have solved it while are using the...Hi Apurva,
i have jus faced thid issue. but i have solved it
while are using the page title create like this
create-page:title=yourpagetitle%ident%
this will give u the static page title with identity like yourpage1, yourpage2, etc
also it wont ask u for the promt to enter the page title.
With Regards,
Dhivya.M
Sep 07, 2007
Tobias Sandhaas says:
I am using the createpage macro in combination with confluence templates which a...I am using the create-page macro in combination with confluence templates which are using
variables (eg. @VAR1). Is it possible to predefine the values of these variables within the
create-page-macro?
eg.:
create-page:template=customer|addspace=false|target=edit|VAR1=11111|VAR2=customer a|prompt=Please enter the customername}Click Here to add a new customer
create-page}
If not, do you know some other way to accomplish this?
Sep 07, 2007
Alain Moran says:
Take a look at the Replace and Render PluginTake a look at the Replace and Render Plugin
Sep 13, 2007
Igor Minar says:
Where can I find the source code for this plugin?Where can I find the source code for this plugin?
Sep 13, 2007
Alain Moran says:
Deviously, I hid it on atlassian's public svn server ... I figured nobody would ...Deviously, I hid it on atlassian's public svn server ... I figured nobody would think to look there for it
http://svn.atlassian.com/svn/public/contrib/confluence/createpage-plugin/trunk/
Sep 13, 2007
Igor Minar says:
Thanks Alain. Maybe you should add this information in the plugin description se...Thanks Alain. Maybe you should add this information in the plugin description section at the top of this page.
btw I committed some important patches.
Sep 14, 2007
Alain Moran says:
Its actually part of the repository metadata, I havent been creating tags so I h...Its actually part of the repository metadata, I havent been creating tags so I hadnt added it to the repo metadata (I dont think there is a way of specifying an overall source link, only links to each tag).
If you have made changes, be sure to update the repository metadata and add yourself as a contributor
Oct 10, 2007
B Sudhakar says:
We are running confluence 2.6.0 and have templates with labels defined there (ne...We are running confluence 2.6.0 and have templates with labels defined there (new feature in Conf 2.6.0)
We have create page macro to create pages from these templates.
Create Business Activity
The labels defined in the template are not carried froward into the created page using the above line.
Normal, Add page from template carries forward the labels defined in the template.
For now, we are using the add-label macro to get around this problem.
When will you be solving this issue?
Jan 03, 2008
Ashim Ranadive says:
Using the createpage macro & Scaffolding, how can I get directly to the Scaffold...Using the create-page macro & Scaffolding, how can I get directly to the Scaffold editing view? (Not the Wiki markup, but rather the editable template)
Boilerplate takes me to view the template and I have to then click the Edit tab.
Thanks
Jan 24, 2008
Richard Fletcher says:
Tried the create page macro with a template in my own personal space. The f...Tried the create page macro with a template in my own personal space. The form data is not held (ie there is no "insert variable" button) so the page gets created with nothing in it.
Jan 24, 2008
Robert Breton says:
Did you include "target=edit"?Did you include "target=edit"?
Mar 19
Robert Ortner says:
I have the same problem its not possible to change in edit mode to set variables...I have the same problem - its not possible to change in edit mode to set variables from the template
Feb 15, 2008
Chris Paquin says:
Hopefully an easy question.. is there a way to have the macro JUST create the pa...Hopefully an easy question.. is there a way to have the macro JUST create the page, and NOT take the user to either edit or view, and instead just stay on the page where the macro was invoked? I'm working with the Check-list macros, and am looking for an easy way to create empty pages by just entering a title, but not providing any other details.
Feb 21, 2008
Markus Nagengast says:
Is it already possible now to use an image as link? Thanks...Is it already possible now to use an image as link?
Thanks...
Feb 25, 2008
S Wright says:
Is it possible to 'save' the edited form of a temple without going into the wiki...Is it possible to 'save' the edited form of a temple without going into the wiki markup page and clicking on 'save'? This is more intuitive for the user, who might get confused at seeing the mark-up and not properly save the form after creating a page. For example, can the user simply 'insert varibales' and then the form is automatically saved in the space?
Thanks
Apr 08
Lubos Strapko says:
It's a great plugin. We use it quite often. But there is a small bug in createpa...It's a great plugin. We use it quite often. But there is a small bug in createpage.js, the javascript function "escape()" is not suitable for encoding URL address, you should use a javascript function "encodeURI()". It's very very very important to be compatible with all charsets and browsers.
So instead of:
document.location=url+escape(name)+postfix;
use:
docu