Document Metadata
A Strapi plugin that displays entity metadata, with an option to include the "last opened" details.
Strapi Plugin: Document Metadata
A Strapi plugin that displays entity metadata, with an option to include the "last opened" details.
⏳ Installation
Install with NPM.
npm install strapi-plugin-document-metadata --saveInstall with Yarn.
yarn add strapi-plugin-document-metadata🔧 Usage
1. Configure the Plugin
Add the following configuration to your config/plugins.ts file. Create the file if it doesn’t already exist:
export default {
// …
'document-metadata': {
enabled: true,
},
};Then restart the app to apply the changes.
2. Use in the Admin Panel
Once the plugin is installed, the Document Metadata card automatically appears when editing collection types entries. By default, it displays:
- Created at
- Created by
- Last updated at
- Last updated by
No additional setup is required for these fields.
Last Opened Metadata
To enable Last Opened tracking, add the following fields to your collection type using the Content-Type Builder:
| Field name | Type | Required |
|---|---|---|
openedAt | DateTime | ❌ |
openedBy | String | ❌ |
Once these fields exist:
- The plugin automatically updates them when a document is opened.
- The metadata card will display the last opened date and user.
Note: To prevent these fields from showing up in the regular edit view, remove them under "Configure the view".
📸 Screenshots
Below are screenshots from an example application showing the document metadata in the list view and when editing an entry.
Install now
npm install strapi-plugin-document-metadata
Create your own plugin
Check out the available plugin resources that will help you to develop your plugin or provider and get it listed on the marketplace.