Overview | |
This page gives users further information on the Multi-like feature. This feature allows configurators to set multiple "like" options rather than just a simple "Like" button. For a simple "Like" feature, you can make use of the PluginLike
|
FAQs | |
What does this Multi-Like feature do? | |
|
Are there any limitations to this feature? | |
|
Is it complicated to use? Are there any knowledge pre-requisites? | |
At this stage, Multi-like is not a particularly complicated feature but requires some knowledge of Smarty templates, Smarty functions, and how the Tiki file structure is set up to use properly. |
Configuration | ||||||||||||||||||||||||
Multi-like configuration requires accessing the “Community” Control Panel with the “Advanced” feature on. Look for the preference titled "Configuration for multilike". Note that every configuration must be separated by a blank line.
|
Example value for configuration/preference field | |
Copy to clipboard
This would initialize two possible multi-like configurations that could be used (note the blank line between the two configurations; this is required).
|
Permission configuration | |
Until better permission handling is developed for Relations, tiki_p_post_comments will be used to check permissions. |
Using a multi-like configuration in a Smarty template | |||||||||||||||||||||||||||||||||||||||
Once multi-like is configured (see previous step), you may call it in a Smarty template using the "multilike" Smarty function. The parameters you must pass to this function are explained below:
|
Example Smarty code to call a multi-like configuration | |
Copy to clipboard
|
Example of a like / unlike usage | |
In this case we want to set 2 multilike plugins, one for like and one for unlike, using different icons (added in Tiki19).
In the multilike parameters text area; Copy to clipboard
Copy to clipboard
|