Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Create Page action with provided labelString parameter in Confluence 4.*

Walter Kammergruber September 10, 2012

Is there a way to add predifined labels to a create page action link in Confluence, such as:

http://foo.com/confluence/pages/createpage.action?spaceKey=ds&title=foo22&labelsString=foolabel

in Confluence 3.* labelsString as parameter is recognized in 4.* the parameter is ignored. Is there a reason for this?

There is a new labels dialog instead of an input field, but I guess it could be not *that* hard to consider the URL parameter inside the dialog. There is even a hidden field with "createPageLabelsString" set to the right value. Do I miss something?

Being able to create Links with predefined values is really an important feature!!!

2 answers

1 accepted

1 vote
Answer accepted
Remo Siegwart
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 6, 2013

It's still possible with the parameter labelsString, they just won't show up in the dialog before saving. See my answer here: https://answers.atlassian.com/questions/23087/should-passing-the-url-parameters-for-createblogpost-action-work-with-confluence-4-0-as-well/23112

Hope this helps

Walter Kammergruber January 11, 2013

Thanks for your answer. I was aware that the provided labels are actually saved with the page. The thing is IMHO this behavior confuses the end user when she edits the labels and these provided labels don't show up.

I had this problem some time ago in a project and I solved it with a JavaScript workaround -- I guess the one that someone mentioned in your link.

Thanks anyway. I should have marked the answer as closed...

0 votes
Walter Kammergruber September 20, 2012

It might have to do with: https://answers.atlassian.com/questions/69914/add-label-in-content-editor-bug-labels-are-not-visible and therefore: https://jira.atlassian.com/browse/CONF-18018

(the size of this image is actually much bigger to see the original do something like right click and open image in new tab)

I could not reproduce the described issue from the related answers question, but mine might have todo with it.

A plain vanilla Confluence 4.3.1 installation (through the SDK):

http://localhost:1990/confluence/pages/createpage.action?spaceKey=ds&labelsString=foo%20bar

The labels are stored in the hidden form field "createPageLabelsString" and taken into account when the page is saved. Unfortunately a user does not get to see them in the Labels dialog.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events