Save for later functionality with Scroll viewport
hi,
Is it possible to support save for later functionality like in Confluence for users having access only to Scroll viewport ? Our customers can only access through viewport our documentation.
Thanks in advance,
Jeroen
-
Hi Jeroen,
thanks for reaching out to us.
You basically can nearly add every feature in Scroll Viewport from Confluence if there is an API for it.
I could find the request to post a "saved for later" page to Confluence, but I couldn't find an API Call to get the information after they have been posted.To save a page for later, you can do this by including a Button to your Viewport Theme (as it is in Confluence). If the button gets clicked a REST-Call is made to this URL:
<confluence Base URL>/rest/experimental/relation/user/current/favourite/toContent/<pageID>
You would need to send the atl_token with the request, so Confluence knows which user is currently logged in. You can get this information with the $xsrfToken.token and$xsrfToken.tokenName placeholders: https://help.k15t.com/scroll-viewport/latest/xsrftoken-125708820.html
Also if you have questions like this which are web-developer questions you can post them in our Google Group. Here you will find other Viewport Developers and questions related to Scroll Viewport development (maybe a future question is already answered there).
I hope this is helping.Best,
Steffen
Please sign in to leave a comment.
Comments
2 comments