Skip to main content

Description

Creates a like button. If used within a result you will need to add the following workflow processor to your platform configuration file in order to get the status of the like and the number of people who have liked the result. The default file is platforms/fusion/data.conf.
workflow:
    twigkit.social.processor.AddLikeFactsProcessor

Usage

as element:
<collaborate:like
       target="{string}"
       [topic="{number}"]
       platform="{string}"
       [collection="{string}"]
       [enable-tooltip="{boolean}"]>
</collaborate:like>

Parameters

ParamTypeDetails
targetstringA unique identifier for a document that is being liked. Example values: document123 Maximum length: 2083 characters
topic (optional)numberA topic to which the new like should belong.
platformstringName of the platform to send the data to.
collection (optional)stringThe collection to which the target document belongs.
enable-tooltip (optional)booleanWhether to enable the tooltip (Default:true).

Example

Source

<h3 id="example_traditional">Traditional</h3>
<collaborate:like></collaborate:like>
<hr/>
<h3 id="example_without-tooltip">Without Tooltip</h3>
<collaborate:like enable-tooltip="false"></collaborate:like>

Result

Result
I