Socket
Socket
Sign inDemoInstall

@lucchev/strapi-plugin-slugify-from-richtext

Package Overview
Dependencies
272
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @lucchev/strapi-plugin-slugify-from-richtext

Adding a custom field of type string, which is populated from another field of type 'richText'


Version published
Maintainers
1
Created

Readme

Source

Strapi plugin slugify-from-richtext

Adding a custom field of type string, which is populated from another field of type 'richText'

Plugin registration

export default {
  // ...
  'slugify-from-richtext': {
    enabled: true,
    resolve: './src/plugins/slugify-from-richtext'
  },
  // ...
}

Using the plugin

Example in the content-type of a collection :
  "myDescription": {
    "type": "richtext"
  },
  "myGenerateTitle": {
    "type": "customField",
    "customField": "plugin::slugify-from-richtext.slug",
    "relatedTo": "myDescription",
    "wordJoiner": "_",
    "wordMaxNb": 2,
    "hidden": true,
    "removeSpecialCharacters": false,
    "removeUpperCase": false,
    "removeAccents": false,
    "addEllipsis": true
  }
Facultative parameters (and their default value)
  • wordJoiner: "-"
  • wordMaxNb: 4
  • hidden: false
  • removeSpecialCharacters: false
  • removeUpperCase: false
  • removeAccents: false
  • addEllipsis: false

FAQs

Last updated on 22 Apr 2023

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