• MODX.com

    3 downloads

BentoHook

BentoHook is an extra by matdave, first released on 2024-12-19.

Usage/Installation Instructions

## System Settings - bentohook.secret-key: Secret Key from Bento - bentohook.publishable-key: Publishable Key from Bento - bentohook.site-uuid: Site UUID from Bento ## Usage ### FormIt To add a Bento subscription to a FormIt form, add the `BentoHook` hook to the form. ```html [[!FormIt? &hooks=`BentoHook` ``` Additional parameters can be passed to the hook to customize the subscription. ```html [[!FormIt? &hooks=`BentoHook` &bentoEmail=`email` // The email field name &bentoOptin=`optin` // An optin field name &bentoOptout=`optout` // An optout field name &bentoFields=`beno_field_label==formit_field_name` // Custom fields to send to Bento ``` ### Profiles To check if use logged in user is subscribed to Bento, use the `BentoHook` snippet. ```html [[!BentoCheckList &email=`test@example.com` // The email to check &inListTpl=`inListTpl` // Chunk to display if user is subscribed &notInListTpl=`notInListTpl` // Chunk to display if user is not subscribed ]] ```

Details

Developer(s)
matdave
Released
2024-12-19
First seen
2024-12-19
License
MIT
Supported databases
Minimum MODX Requirement
3.0

BentoHook Releases

Vendor Signature Released on
MODX.com 1.0.0-pl 2024-12-19 (1 day ago)