Forum Discussion
Thank you for your quick answer !
I thought that a "Me Too" could be a achieved by creating a Rating with the following rest call :
rest("/messages/id/MESSAGE_ID/ratings/key/question_metoo/ratings/add?rating.value=0.0")
As for the non-contract component, we don't need the actual code per se, but the knowledge of what parameter to pass to the component for it to apply to a given Question for example. We would be perfectly happy with just calling the non-contract component with :
<component id="ratings.widget.rating-enum-display" ratingSystemRef="conv:question_metoo"/>
and adding a parameter for the widget to recognize what message to apply the "Me Too" to.
Do you think it is possible ?
Thanks again for your help :)
Hello,
Currently there is no way to directly parameterize the ratings.widget.rating-enum-display component for a specific Question. This component will attempt to get the object it is rating from its context. If used in the context of a Question component, then it will give the me too rating to the Question. If not used within a component that has a "ratable object" then it will attempt to get of the ratable item from the URL. Since you plan to use this on the Q&A main page, there will not be an ID for a Question in the URL path, and there is no simple way to add one that will be picked up by this component.
I think a good improvement for the existing component would be to allow the parameterization of the ratable object. You might consider submitting this as an Idea or as a services engagement. Otherwise I think you would need to try and replicate the functionality using the REST API.
Related Content
- 4 years agoInactive User
- 5 months ago