Issue
- I have followed the instructions described in Counter in Web Content Display remains at 0 after activating Enable View Count Increment to enable the view count increment for web content by performing the following from the control panel:
- Enable View Count Increment in System Settings → Web Content → Web Content Display
- Enable in System Settings → Infrastructure → View Count.
However, the view count for web content is not incrementing when displaying the content on a display page template.
Environment
- Liferay DXP 7.4
Resolution
- In order to increment the view count on web content displayed on a display page template, you should enable view count increment for the display page template. This can be achieved by going to System Settings --> Assets --> Display Page Template and checking the box for View Count Increment
Conteúdo Excluesivo para Assinantes
Uma Subscrição do Liferay Enterprise fornece acesso a mais de 1.500 artigos que incluem práticas recomendadas, solução de problemas e outras soluções valiosas. Faça login para obter acesso completo.
Entrar