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.
npm install @hellowearemito/payload-plugin-recently-viewed
import { recentlyVisited } from '@hellowearemito/payload-plugin-recently-visited'
export default buildConfig({
// ... rest of the config
plugins: [
recentlyVisited({ enabled: true })
]
})
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 |
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.
MIT