Khoros Atlas Logo

tpiens
New Commentator

Adding a subscribe button for a board inside an article

I'm looking for a way to have a 'subscribe' link or button at the bottom of an article that lets the user subscribe to the whole board rather than just the article.

We usually link directly to our articles through social media etc, so users don't usually end up browsing the board itself to notice the subscribe option in the dropdown.

 

I've tried the good old 'let's look at the source' to copy paste the script that activates the subscription but it relies on an authentication token.

'my' Token will obviously not work for otyherusers and leaving the token out causes an Authentication Failed.

 

Anyone play with this and know how to either snag the user's own token from their session, or a different way of achieving this ?

 

Much appreciated!

0 Kudos
2 Replies 2
Honored Contributor
Honored Contributor

Re: Adding a subscribe button for a board inside an article

@tpiens -

Unfortunately the subscribe link will not work as it require token. 

You will require some customization to achieve this.  Create a custom component for the custom button and add it to the page. The button will trigger subscription API.  Using the restapi, you can subscribe board to the logged in user. 

 

Documentation: https😕/lithosphere.lithium.com/t5/Developer-Documentation/bd-p/dev-doc-portal?section=commv1&branch...

Give kudos if you find my posts helpful or mark solution if it answers your query.
Tariq
0 Kudos
Reply
Loading...
Highlighted
Honored Contributor
Honored Contributor

Re: Adding a subscribe button for a board inside an article

@tpiens,

I have added the solution for the same over here in this topic. 

https😕/lithosphere.lithium.com/t5/Developer-Discussion/How-to-create-a-subscribe-to-board-button/m-...

You just need to replace this variable to pass the boardID parameter in the code

<#assign boardID = '${boardID}' />

.......
Do you know we work with Kudos and Accepted Solution.
Reply
Loading...