Skip to content

The Recently Viewed Module keeps a record of the weblog entries that have been recently viewed during the users current session even if the user is not registered or logged in and provides tags to display recently viewed weblog entries back to the user in your front end page templates.

nathanpitman/recently_viewed.mod.ee_addon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Recently Viewed Entries for ExpressionEngine

Original EE1 module by ninefour. Updated for EE2 by agathongroup.

The "Recently Viewed Entries" module allows you to keep a record of recently viewed entries on a per member basis and display that data back to the user in your page templates. The module uses the members session ID so they need not be logged in.

Usage example:

Record views for entries 1-5:

{exp:recently_viewed:add_entry channel="channel_name" entry_id="1"}
{exp:recently_viewed:add_entry channel="channel_name" entry_id="2"}
...

Retrieve recently viewed entries:

{exp:recently_viewed:get_entries channel="channel_name" distinct="yes"} // EE1: distinct="on"

Will output:

1|2|3|4|5

The EE2 version of this module also lets you set a limit parameter on {exp:recently_viewed:add_entry}, to control how many entries are stored in the database. The default number is 5. The EE1 module will store a maximum of 5 entries.

{exp:recently_viewed:add_entry channel="channel_name" entry_id="{entry_id}" limit="10"}

About

The Recently Viewed Module keeps a record of the weblog entries that have been recently viewed during the users current session even if the user is not registered or logged in and provides tags to display recently viewed weblog entries back to the user in your front end page templates.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages