This is something we’ve had kicking about at Nine Four for a while and I’ve not yet got around to putting it up on GitHub so thought I’d drop a copy here for a couple of people that have shown interest. It basically keeps a record of a visitors recently viewed entries using their session ID.
Implementation is pretty basic, include the following on any page where you want to track entries to the recently viewed list:
{exp:recently_viewed:add_entry weblog="weblog_short_name" entry_id="{entry_id}"}
You could also pull the entry_id from a segment in the URL to negate the need to place this in between the weblog:entries tag. Then use the following to spit out details of the entries they have recently viewed:
{exp:weblog:entries weblog="weblog_short_name" parse="inward" fixed_order="{exp:recently_viewed:get_entries weblog='properties' distinct='off'}"}{title}{/exp:weblog:entries}
Download here: http://ninefour.co.uk/labs/recently-viewed/
That’s it! Enjoy! ![]()
