+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / User's Recently Viewed Items (Custom Module)

User's Recently Viewed Items (Custom Module)

4 posts, 0 answered
  1. David
    David avatar
    114 posts
    Registered:
    19 Jul 2012
    18 Mar
    Link to this post
    Is there an easy way using Sitefinity Personalisation features to show a user their recently viewed items in a Custom Module?  I've seen this on lots of sites and I think it's useful.
  2. Velizar Bishurov
    Velizar Bishurov avatar
    143 posts
    Registered:
    01 Dec 2016
    23 Mar
    Link to this post
    Hello,

    There is no out of the box mechanism that achieves this behavior.

    One approach of achieving this behavior would be to create a short text field for the user profiles, to hold the IDs of the last three viewed items (or more). Then you can use the API to update that field when an item is viewed.

    The last step would be to create a custom widget that queries the field, splits it into the three IDs, queries the items and displays them in a list.

    Regards,
    Velizar Bishurov
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
  3. David
    David avatar
    114 posts
    Registered:
    19 Jul 2012
    29 Mar in reply to Velizar Bishurov
    Link to this post
    I was hoping to achieve this for guests of the site - non-users.  So I guess I would need to store the id numbers in a cookie?
  4. Velizar Bishurov
    Velizar Bishurov avatar
    143 posts
    Registered:
    01 Dec 2016
    31 Mar
    Link to this post
    Hello,

    Indeed in this case probably the best option would be to use a cookie.

    Regards,
    Velizar Bishurov
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
4 posts, 0 answered