Plugin

EE 1
EE 2
Page History

Developer

David Hyland

3rd Party (Free)

Creative Commons Attribution Download v1.04

Compatibility

  • LG Addon Updater
  • Multi Site Manager
  • Stand Alone Entry Form

Requirements

  • jQuery for the Control Panel

Tags

Returns the last pages visited by the user, from the current page to up to 5 pages ago. Useful for a proper "back to page" link rather than using javascript.

To get the current URL:
{exp:page_history:get page=‘0’}

To get the previous page:
{exp:page_history:get page=‘1’}
OR more simply:
{exp:page_history:get}

To get “two pages ago”:
{exp:page_history:get page=‘2’}

And so on, up to a limit of 5 “pages ago”

The default returned URL structure is page relative, ie “folder/template/”.
To return the full site URL (ie: http://domain.com/page) add the parameter site_url=‘yes’, eg:
{exp:page_history:get page=‘1’ site_url=‘yes’}

Marvellous :)

==
v1.0.2 - fixed bug where if no param was passed (for last page) and no history exists (ie first page view) then an undefined index error was thrown
v1.0.3 - fixed bug where page parameter was not being respected :(
v1.0.4 - added site_url parameter

Download Page History

EE Version Downloads Add-On Version Release Date
2.+ Download 1.04 2011-05-17 12:00 AM

This entry was last updated May 17, 2011, 8:18 am.

Disclaimer: Information about ExpressionEngine add-ons is provided as a service to you, the user, and every member of the ExpressionEngine community. Devot:ee is not responsible if you hose, mangle, wreck, or otherwise destroy your EE website by installing an add-on that you found out about at this site, regardless of its rating, Favorites status, commercial or free status, or general popularity. Caveat EEmptor!

There are no reviews for this add-on yet.

What are you waiting for? Rate it and review it!