npm.io
0.2.2 • Published 2 years ago

@remy90/payload-conditions-plugin

Licence
MIT
Version
0.2.2
Deps
2
Size
237 kB
Vulns
0
Weekly
0

Payload conditions

This plugin provides criteria for conditional content, which can be specified by content writers. It uses existing payload select components and currently allows for boolean, multiple choice and input text string answer types.

This package is for v3 (currently in alpha) and above.

Installation

pnpm add payload-conditions-plugin

How to use

  • Add this package
  • Declare questions and answers from the question & answer pairs
  • Specify the question-answer combinations that results in a page being shown
If you've found this plugin helpful, please leave a star ️

Keywords