Description
Creates a like button.
If used within a result you will need to add the following workflow processor to your platform in order to get the status of the like and the number of people who have liked the result
workflow:
twigkit.social.processor.AddLikeFactsProcessor
Usage
<collaborate:like target="{string}" [topic="{number}"] platform="{string}" [collection="{string}"] [enable-tooltip="{boolean}"] [tooltip="{string}"] [active-tooltip="{string}"] [singular-tooltip="{string}"] [plural-tooltip="{string}"]> </collaborate:like>
Parameters
Param | Type | Details |
---|---|---|
target | string | A unique identifier for a document that is being liked. Example values: document123 Maximum length: 2083 characters |
topic (optional)
|
number | A topic to which the new like should belong. |
platform | string | Name of the platform to send the data to. |
collection (optional)
|
string | The collection to which the target document belongs. |
enable-tooltip (optional)
|
boolean | Whether to enable the tooltip (Default:true). |
tooltip (optional)
|
string | Tool tip for the bookmark link. Default: “Do you like this?” |
active-tooltip (optional)
|
string | Tool tip to show when document has already been bookmarked by the current user. Default: “You have liked this” |
singular-tooltip (optional)
|
string | Tool tip for statistics when the document has been liked by a single person. Default: “person likes this.” |
plural-tooltip (optional)
|
string | Tool tip for statistics when the document has been liked by more than one person. Default: “people like this.” |