id-chalmers
10 years agoMentor
Which Page template is used for new ideas?
I am hoping to add a custom content block to the page where new ideas are submitted (the <body> class is PostPage). This would be fairly straightforward for an Idea Exchange page: I would create a ne...
- 10 years ago
id-chalmers - As of now, there is no direct way to differentiating, the post page is common for messages, blog post and ideas etc. The only way you have is to get the ID of the board you are on from the URL using the context objects, and make a rest call to check the interaction style of this, if it is idea, you proceed with it.
e.g. you are on this page /t5/forums/postpage/board-id/product-ideas You have to make a REST call: /restapi/vc/boards/id/product-ideas/interaction_style Reponse: <response status="success"> <value type="string">idea</value> </response>
Let me know if this helps.