Is it possible to get the News Content visible on the Front Page in Confluence?
Alternatively is it possible to get blogposts filtered by a label on the Content?
Hello Fabian and welcome to the Community!
When accessing Confluence, you will land on the dashboard page. The landing page can be changed to another landing page which you may fully customize to display whatever content you see fit. To change the landing page within confluence, please follow these steps:
To use a page as your site home page:
Source documentation: Configuring the Site Home Page.
As far as getting content from Confluence such as blog posts and only displaying content with a set label, your ideal endpoint to use would be GET /rest/api/content/search. This endpoint allows you to use CQL to search and apply label filters to get the exact contact you desire. To find out more about Confluence and CQL, please see Advanced Searching using CQL. An example API call for this would be as follows:
http://localhost:8080/confluence/rest/api/content/search?cql=type=blogpost%20AND%20label=SOMETHING&expand=storage
I hope this proves helpful and provides some guidance on moving forward.
Regards,
Stephen Sifers
Thanks for the quick answer! The label parameter in the query was what I searched for thank you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.