Socket
Socket
Sign inDemoInstall

strapi-plugin-content-moderation

Package Overview
Dependencies
2
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    strapi-plugin-content-moderation

This plugin allow the moderation of content types


Version published
Maintainers
1
Created

Readme

Source

Strapi - Plugin - Content moderation

A Strapi plugin for moderation your content types.

This plugin enables your team to moderate other users' new content entries for any of your content types and also users.

✨ Features

  • Any Content types and Users: Can be activated in the administration for all content types and builtin users.
  • Moderation Panel: Sort by moderation status all your content entries together.
  • Permissions: Add administrators and control which role can set content pending for moderation

⚙️ Versions

  • Strapi v4 - (current)

🧑‍💻 Install

npm i strapi-plugin-content-moderation
yarn add strapi-plugin-content-moderation

After successful installation, run:

npm/yarn build
npm/yarn develop

The Moderation plugin should appear in the Plugins section of Strapi sidebar after you run app again.

🔧 Configuration

  1. Moderation must be enabled in settings of Content Type. Same as localization plugin.
  2. To setup plugin configuration you have to put following snippet as part of config/plugins.js or config/<env>/plugins.js file. If the file does not exist yet, you have to create it manually. If you've got already configurations for other plugins stores by this way, use just the content-moderation part within exising plugins item.
module.exports = ({ env }) => ({
	"content-moderation": {
		enabled:  true,
        config: {
            sendNotificationEmail: true,
            contentLabel: {
                "*": ["Title", "title", "Name", "name", "Subject", "subject"],
            },
            contentListFields: {
                "*": [
                "Title",
                "title",
                "Name",
                "name",
                "username",
                "Subject",
                "subject",
                "createdAt",
                "updatedAt",
                ],
            },
        },
	},
});
  1. To activate moderation of built-in Users (users-permissions plugin), create the extensions: src/extensions/users-permissions/content-types/user/schema.json, copy the original content from the plugin's file and add:
  "pluginOptions": {
    "moderation": {
      "moderated": true
    }
  },

Properties

  • sendNotificationEmail - Enabled sending an email notification when content entries are approved or rejected to the author/user. Default value: false.
  • contentLabel - List of fields that will be used to label your content in notification emails. The first field defined in your content will be used. * is defined for all content types. You can define label fields per content types. For example: "Post": ["Title", "customField"]
  • contentListFields - List of fields that will be displayed in the content list visible in the moderation panel. * is defined for all content types. You can define label fields per content types. For example: "Post": ["Title", "customField", "createdAt"]

👤 RBAC

Plugin provides granular permissions based on Strapi RBAC functionality.

Mandatory permissions

For any role different than Super Admin, to access the Moderation panel you must set following permission:

  • Plugins -> Content-Moderation -> Moderation: Moderate - gives you the basic read access to Moderation Panel

Optional permissions

Feature / Capability focused permissions:

  • Plugins -> Content-Moderation -> Moderation: Set Pending - allows you to set a content pending moderation

📝 License

MIT License Copyright (c) Beyowi

Keywords

FAQs

Last updated on 21 Apr 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc