Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Plugin developing beginner - use content from other sides

Basti G_ November 19, 2018

Hey,

i have read the tutorials for confluence developing from Atlassian.

Now i would like to start with a little bit heavier job.

 

I have a page with undersides in a specific confluence space. My plugin should find these pages with the names from space and sides and use the content from this for generating a text.

 

I can't find a tutorial that explain me how can i do this.

Can you help me?

2 answers

0 votes
Basti G_ November 19, 2018

Thanks.

Existing a tutorial or something like this anywhere?

I dont have much experience with plugin developing and i dont know how can i begin now.

Prakhar Srivastav {Appfire}
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.
November 19, 2018

@Basti G_

Here is an example of SearchManager , to search for content in Confluence and then iterating and processing the result. In a similar way you can also use PageManager and SpaceManager classes by using dependency injection in construction. You might be using servlet or action classes.

 

https://developer.atlassian.com/server/confluence/searching-using-the-v2-search-api/

 

Regards

Prakhar

Basti G_ November 21, 2018

Thanks, i try this.

 

Another question:

I want to use a soy template where the user can check checkboxes to add text from search. How can i check if a checkbox checked? I try this but isn't works.

0 votes
Prakhar Srivastav {Appfire}
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.
November 19, 2018

@Basti G_

You can use pageManager to get the page to play around the content of Confluence.

https://docs.atlassian.com/atlassian-confluence/6.2.0/index.html?com/atlassian/confluence/pages/PageManager.html

 

Regards

Prakhar

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events