Skip to content

A plugin for Payload CMS to list recently visited items on the admin dashboard

Notifications You must be signed in to change notification settings

hellowearemito/payload-plugin-recently-visited

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm version

Payload Plugin Recently Viewed

The aim of this plugin is to provide a list of recently viewed pages to the user. This plugin is useful for users who want to quickly navigate to the pages they have recently viewed. Especially useful when you have a lot of collections and entries, and you want to quickly jump between them.

screenshot of the plugin

Installation

npm install @hellowearemito/payload-plugin-recently-viewed

Usage

import { recentlyVisited } from '@hellowearemito/payload-plugin-recently-visited'

export default buildConfig({
  // ... rest of the config
  plugins: [
    recentlyVisited({ enabled: true })
  ]
})

Options

Option Type Default Description
enabled boolean false Enable or disable the plugin
adminUsersCollectionSlug string users The collection slug for the admin users collection
breadcrumbClass string .step-nav__last The class name of the last link in the breadcrumb

Usage on the Frontend

The plugin settings for each user can be accessible via the Account Settings page. It is possible to enable or disable the plugin, and to set the maximum number of pages to be displayed. Minimum number of pages to be displayed is 1 and the maximum number of pages to be displayed is 10.

License

MIT

About

A plugin for Payload CMS to list recently visited items on the admin dashboard

Resources

Stars

Watchers

Forks

Packages

No packages published