Recently viewed

Records a member opened are noted: a list view, the list sorted with them first, a "last viewed" column and a block on the dashboard.

The code

app/src/Controllers/ClientController.php – Clients: noted, listed first whole file
private static $recent_views = 20;

/**
* The list starts with the clients the member opened last.
*/
private static bool $recent_first = true;
app/src/Controllers/ProjectController.php – Projects whole file
/**
* Note every opened project per member; "Recently viewed" becomes a list view.
*/
private static $recent_views = 20;
app/templates/App/Controllers/Layout/DashboardController.ss – Block on the dashboard whole file
<% include Atwx\SilverstripeFrontdeskKit\Includes\RecentViews %>