Like" button on content


This page should only be applied if the script assisted migration asks you to pass the manual migration skin.20241021.INTRANET.likes

Please note that this migration is valid for versions 1.19.1, 2.0.1 and 2.1.0. If you have already migrated from 1.19.1 or 2.0.1, you may have already done so.

To display "likes" on the page's main content, such as articles or news, the xsl template"main-content-dates" of the "page" template has been modified to insert the button under the main content title, by calling the XSL template "main-content-likes".

If you've overloaded this template, you'll need to revise your overload to take advantage of this new feature.

If you have overloaded the "additionnal-script " template in the "page" template, you must also add the call to the "content-likes-script" template.

In addition, a few minor changes have been made to CSS (file _interieur.scss) for this area.
Check that these modifications have not resulted in any graphical regressions.

Related ticket: https://issues.ametys.org/browse/SKININTRA-358 

Here's a rendering example for the core chart.

 

 

To activate "likes" on article or news content, check the "Activate Like" box in the content modification form.

Back to top