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

How to change page title when generated from blueprint?

Daniele Andriani March 5, 2015

I'm trying to setup a Blueprint plugin for Confluence on our company's server. We're setting up a knowledge base and need some specific fields to be added as well as the title to be prefixed. I've read the different tutorials to create blueprints and tested them out and finally ended by finding out that the documentation is outdated.

So now I'm stuck on where I should modify the data sent to create a new page from a blueprint using the data in the wizard dialog? Am I supposed to do this with a ConectProvider or is it better to do so with an event listener? In both cases what class should I extend or what interface should I implement? All the example or answers I've found use either a BlueprintEvent or a BlueprintContextProvider which are either depreciated either non existent in the Atlassian Java doc (https://docs.atlassian.com/confluence/latest/).

Any link to recent tutorials, documentation or any kind of information will be greatly appriciated.

I'm using the latest version of Confluence.

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Answer accepted
Tim
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.
March 11, 2015

IMHO it is all in here: https://bitbucket.org/atlassian/hello-blueprint/ You need a ContextProvider which extends AbstractBlueprintContextProvider.

You will not find the Java doc of these classes within Confluence, because they are outsourced into this plugin:

https://maven.atlassian.com/content/groups/public/com/atlassian/confluence/plugins/confluence-create-content-plugin/5.0.2/

Daniele Andriani March 11, 2015

Could you tell me where I can find documentation about the class? I'm trying to understand how to change the title, I've tried everything I've found on the internet to do so but without success, this is turning me crazy.

Tim
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.
March 11, 2015
Daniele Andriani March 11, 2015

I've seen and read all of this but haven't been able to change the created page name, but thanks to your link to the hello-blueprint project I've found out there are constants you can give to the put method of the context which might be what I've been looking for all this time. As soon as I get to test this out I'll accept your answer if it works ;)

Daniele Andriani March 25, 2015

@TtheB Not exactly what I was hoping for but still helped quite a bit, so I accepted the answer.

TAGS
AUG Leaders

Atlassian Community Events