Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 05/26/2018 in all areas

  1. Today is the last day of school before summer break for my kids—school is getting out early, so I'll keep this post short. But like most weeks, we've got a new core version on the dev branch this week. Core version 3.0.104 contains 13 new commits relative to last week's version, mostly related to resolving minor issues in our GitHub queue. There's not enough interesting material for me to take up your time reading a blog post, so I will save that for next week. But if you are running on the dev branch then it's definitely worth grabbing. If you are using AdminThemeUikit, this version has several minor tweaks and improvements to that admin theme as well. Plenty more to come next week. Thanks for reading, and have a great weekend!
    7 points
  2. Hi @Karl_T. The module has no ability to modify the session data. It only can modify PW pages. AFAIK session data is not stored as pages. What you can do is add a custom GraphQL mutation field for modifying your session. But that would require you to learn GraphQL and the PHP library that we use. Here is how it might look like <?php namespace ProcessWire; use Youshido\GraphQL\Type\Scalar\BooleanType; use Youshido\GraphQL\Type\Scalar\StringType; use Youshido\GraphQL\Type\Scalar\IntType; use Youshido\GraphQL\Execution\ResolveInfo; $processGraphQL = $modules->get('ProcessGraphQL'); wire()->addHookAfter('ProcessGraphQL::getMutation', function ($event) { $mutation = $event->return; $mutation->addField('modifySessionData', [ 'type' => new BooleanType(), 'args' => [ 'foo' => new StringType(), 'bar' => new IntType(), ], 'resolve' => function ($value, array $args, ResolveInfo $info) { $success = false; // modify session data here... if ($something) { $success = true; } return $success; } ]); }); echo $processGraphQL->executeGraphQL(); And then the query for this could look like this mutation { modifySessionData("foo": "boblibob", "bar": 12234) } Haven't tried it. So there might be something I'm missing. But I hope this gives you the idea of how you can achieve what you want.
    5 points
  3. Hi, We build our first PW module, so don't hesitate to share your feedback! https://github.com/Typografics/PaymentMollie-PW3 We developed this payment module for our fundraiser webshop: https://shop.typografics.be/. Here you can read the whole story. Enjoy the weekend!
    3 points
  4. Version 1.3.7 is uploaded. Big thanks to @matjazp, this update is largely based on his excellent work. Changelog skip unnecessary redirect on modal save (by matjazp) new "page-add" action to add child (requested/contributed by matjazp) use monospace font in module settings field styleOverrides (by matjazp) new setting: disable loading FEEL CSS (requested by matjazp) remove system templates from module settings JavaScript callback updates and documentation several minor tweaks
    3 points
  5. I just tested and it work well. And yes, look a cool module ?
    2 points
  6. Hi @Zeka. You should not install the main repository of the module. The main repository of the module is intended only for development of the module. You can install the module in two ways: By module classname. Go to Modules -> Site -> Add New in your PW admin and write `ProcessGraphQL` in Module Class Name field and press Download and Install button. By a zip file. You need to download the module for installation from the releases page of the module. There you can download a .zip file and place it's contents to the site/modules/ directory of the module.
    2 points
  7. @joshuag - I wanted to point out that the module is generating an invalid RRULE. The RRULE should not include DTSTART, but it should be separate. Instead of this: WKST=MO;FREQ=WEEKLY;DTSTART=20180611T093000Z;INTERVAL=1;BYDAY=MO;UNTIL=20180831T235900Z it should be: DTSTART:20180611T093000Z RRULE:FREQ=WEEKLY;UNTIL=20180831T235900Z;BYDAY=MO The spec also has a separate DTEND which might be worth including. Thanks for looking into fixing this! PS - Have you considered making use of either: https://github.com/rlanvin/php-rrule or https://github.com/simshaun/recurr to do some of the heavy lifting for you? Just out of interest, I am using php-rrule to present the RRULE as a human readable phrase. The recurr library also offers this, but doesn't seem to be as good yet.
    2 points
  8. We have a customer using Sendy for about 6 months now, no problems, about 100k+ newsletters sent. Agree with @Sergio, keep an eye on SES dashboard as it's feedback is not visible in Sendy. We integrated it with Processwire, in as much as we built simple pages(form) where end user adds images and text for a newsletter. This then gets sent to Sendy as HTML Email and a Campaign all ready to go. The concept was to simplify and shield user from complexities of making HTML EMails. We used the Zurb Foundation as the base templates for the HTML EMail code. With Processwire we then merge template and end user form input and send to Sendy via it's API. The calculator on the Sendy.co web site is correct. The AWS SES cost to date for the 100k+ mails is about $USD 10. The clients savings from previous provider for same qty of mailings is approx. $USD 1,000. For a small business this really is significant. Actually, to any business. However, companies like Mailchimp and others are providing a good service, pre built templates, email designs, wizards, security etc... which you are going to have to do yourself to some extent if you go the Sendy route.
    2 points
  9. Sorry for the delay, we had some busy weeks. But we found the time to put the files on github. https://github.com/Typografics/PaymentMollie-PW3 I also made a topic on the modules forum:
    2 points
  10. I created a new field and you're right it works, I'll check it thoroughly, many thanks.
    1 point
  11. Hey there, @theo! Just wanted to notify you that I'm moving this topic to the "Module/Plugin Development" subforum. The "Modules/Plugins" forum area is where support boards for existing modules live, while all module development related topics belong to the "Module/Plugin Development" subforum. Thanks, and sorry for the disturbance ?
    1 point
  12. Thank you, that helped. Unfortunately I love the default theme...
    1 point
  13. 1 point
  14. This is possible with a simple module that hooks us in after the page "save", then retrieve the page object so you can check for it's template. You can find an example module in your site/modules/HelloWorld.module and look at the hooks and the example2() function. There you also see other examples of hooks. If you're into PW's API it's quite simple as it's the same as if you would code template code, just a different context and maybe more advanced. I don't think there's also a "onfirst" save event that could be hooked. So what you want to have, is a check for if the two pages are already created under the page and omit the creation of the two children pages.
    1 point
×
×
  • Create New...