in2code-de / powermail_cond

Add conditions (via AJAX) to TYPO3 powermail forms for fields and pages
8 stars 23 forks source link

[TASK] add support for powermail frontend plugin (powermail_pi2) #73

Closed bahammes closed 1 year ago

bahammes commented 2 years ago

We use the Powermail_Frontend [powermail_pi2] plugin to edit mails in the frontend for authenticated frontend users. The form fields in the plugin powermail_pi2 use the group name "tx_powermail_pi2" (instead of "tx_powermail_pi1") EXT:powermail_cond currently only supports forms with "tx_powermail_pi1", since the plugin name is hardcoded in PHP and JS.

The plugin name in the controller is now determined by calling \In2code\Powermail\Utility\FrontendUtility::getPluginName The plugin name in JavaScript is not known in PowermailCondition:getFieldByMarker, so we just search for both plugin names.

einpraegsam commented 1 year ago

Thx, but the code does not work any more now without jQuery and parsley