Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 07/17/2025 in Posts

  1. I didn't see this anywhere else, but it seems the new admin theme clobbers the custom CSS that is in TinyMCE fields. Without new admin theme: With new admin theme: Is this a known problem? Are there any solutions?
    1 point
  2. Hey @Hackasacka I'm happy to announce that RockCommerce v1.4.0 supports custom payment providers via a very simple interface: <?php namespace RockCommerce; interface PaymentProvider { public function getPayment(string $id): Payment|false; public function createPayment(Order $order, array $data = []): Payment|false; } Please check out the new docs: https://www.baumrock.com/en/processwire/modules/rockcommerce/docs/payment-providers/
    1 point
  3. I like NativePHP. I like Laravel. I love ProcessWire. I'd rather use ProcessWire to build desktop apps. Now it looks like I might be able to! Very early days.... https://bosonphp.com/ Hopefully it catches!
    1 point
  4. Which approach to take depends on where you want the added markup to appear, relative to things like description and notes. Demo: $wire->addHookBefore('InputfieldText::render', function(HookEvent $event) { /** @var InputfieldText $inputfield */ $inputfield = $event->object; if($inputfield->name !== 'text_1') return; $inputfield->prependMarkup('<div>prependMarkup</div>'); $inputfield->appendMarkup('<div>appendMarkup</div>'); }); $wire->addHookAfter('InputfieldText::render', function(HookEvent $event) { /** @var InputfieldText $inputfield */ $inputfield = $event->object; if($inputfield->name !== 'text_1') return; $event->return = '<div>before render</div>' . $event->return . '<div>after render</div>'; }); Related request: https://github.com/processwire/processwire-requests/issues/536
    1 point
  5. Just adding this here as note for me and others. There is also an alternative way to append custom markup to an inputfield: $inputfield->appendMarkup('<div class="test">Hello</div>');
    1 point
  6. Great Module, thanks. I had some luck getting this to integrate with FormBuilder (method d) by using the following Form Builder hook to check the recaptcha before submitting: $forms->addHookBefore('FormBuilderProcessor::processInputDone', function ($e) use ($captcha) { $form = $e->arguments(0); // retrieve argument by number (zero based) // Check to see if recaptcha is true if ($captcha->verifyResponse() === true) { // This will process the form as usual } else { // This will cause an error on form and stop processing $form->error('Recaptcha is missing. Please tick I\'m not a robot and try again'); } }); More info on FormBuilder hooks: https://processwire.com/blog/posts/formbuilder-v34/ Cheers,
    1 point
×
×
  • Create New...