collaborate:like

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

as element:
<collaborate:like
       target="{string}"
       [topic="{number}"]
       platform="{string}"
       [collection="{string}"]
       [enable-tooltip="{boolean}"]>
</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).

Example

Source



Demo