npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@beyowi/strapi-plugin-content-moderation

v0.1.4

Published

This plugin allow the moderation of content types

Downloads

3

Readme

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"]

Extensions

You can customize the email templates by overriding the files contained in server/config/email-templates in your application.

👤 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