Crumpled Fabric

0

Display Views on Repeater

Click URL to copy

Apr 18, 2022

1 min read

WIX Ideas Team

Tags: wix dynamic page view counter Add view counter to wix Fieldkey Velo by WIX View Counter Dynamic Page Repeater JavaScript Functions
“Never let the fear of striking out keep you from playing the game.” – Babe Ruth

In the PART 1 of adding view counter to WIX website, we learned how to automatically increase views for each dynamic item.


In this tutorial, we will display these views on our WIX repeater.


The steps I took are pretty easy;


  1. Added text element to display the number of views on the repeater.

  2. Added eye icon as a symbol for views.

  3. Added the repeater onItemReady function to enable us see the number of views for each items.

  4. Added a formatView() function to enable us to format the view so that 1,000 views looks like 1K views and 1,000,000 views is displayed as 1M. Cool right?😎


📺 WATCH THE VIDEO

COPY CODE BELOW 👇🏽


Code



LEAVE A COMMENT

WRITE A COMMENT

Thanks for leaving a comment🎉

Walter Odibi

Walter Odibi

4/18/22

Awesome Feature

This tutorial shows you how to display views on your Wix repeater.

📺WATCH VIDEO HERE https://www.youtube.com/watch?v=Iz7SdaCSdXg

LOAD MORE 🎉

RELATED TUTORIALS 🚀

Load More Pagination Interaction

Load More Pagination Interaction

Adding a Custom Contact Form in WIX + Email Notification

Adding a Custom Contact Form in WIX + Email Notification

Add your custom contact form to your website with email automation.

Sort by Most Popular

Sort by Most Popular

Sort your repeater by the highest number of people who viewed your dynamic item.