Jump to content


  • Posts

  • Joined

  • Last visited

  • Days Won


Posts posted by jploch

  1. On 11/5/2022 at 1:56 PM, Andy said:

    I was able to install without errors. With the configuration utf8 MyISAM

    When a delete COLLATE=utf8mb4_0900_ai_ci

    Other way with configuration utf8mb4 MyISAM - gives an error:

    A SQLSTATE[42000]: Syntax error or access violation: 1115 Unknown character set: 'utf8mb4mb3'

    My version MySQL 5.5.62

    I can replicate the install error with the configuration "utf8mb4". Using "utf8" with either "MyISAM" or "InnoDB" works for me.
    Deleting the line "COLLATE=utf8mb4_0900_ai_ci" in install.sql is not working for me. I will have to investigate further. For now please use "utf8" instead of  "utf8mb4".

    • Like 1
  2. @Andy Thanks for reporting back!

    I just pushed an update (0.8) which should fix the issue with the file uploader. The file uploader now respect the extensions setting of the corresponding file field and shows an allert for unsupported file types. By default the video file field that comes with the profile (pg_video) only allows the extension mp4 (See screenshot). But you can add webm here if you want.


    • Like 1
  3. Hi @Gideon So

    Thanks! This will be fixed in the next version, you can ignore them for now, these errors should not break anything.  

    2 hours ago, Gideon So said:
    Failed to load resource: the server responded with a status of 404 (Not Found) fieldsettings.css

    This file is not needed anymore, I will remove the call for the next version.
    The rest of the errors are webpack related. I must have used the wrong build command, so should be an easy fix..

  4. @alexm Sorry for that! Not sure what is causing this. Can you please redownload the files and try again (in your gumroad mail click "View content" and than the button "View content" on the product). Also make sure to unzip the folder first and than upload the content to the location were you want to install the profile. The profile already comes with the wire folder included so no need to include ProcessWire yourself.  

  5. 12 hours ago, MarkE said:

    Pretty much! The only difference is that I was using a page ref field for the template, rather than a parent.

    Thats a great concept! I have to think about this.  You can also use a page reference field in a PAGEGRID block template to store a reference to a PAGEGRID item page. This allows you to render a PAGEGRID item on multiple pages (e.g. useful for headers or footers). If you change the content or styling of the referenced page it will update across your whole site.

    • Like 1
  6. @MarkE More options/tools are always great. But there might be some overlapping between our modules, I will send you a test version and you can see for yourself. PAGEGRID is no longer limited to CSS grid, it also supports flexbox and most common CSS properties. It's like ProcessWire and webflow had a baby, but that baby is still very young ?

    15 hours ago, MarkE said:

    One thing my design has is “pro-forma” pages - ie pages with pre-defined layout and dummy content that you can use to create similar pages.

    Maybe this?

    • Like 1
  7. I am happy to announce that I will release an early beta version of my pagebuilder module PAGEGRID to selected users. The main focus of this testing is to make PAGEGRID production-ready.
    There is also an official website now. And a small, but growing documentation page. Both are works in progress, so expect some updates coming soon. You can find the initial post here (it's a little outdated).

    Iam sorry for those who missed it, but the subscription period for the beta ended. Please only post in this thread if you recieved a beta invitation.

    Dear beta testers, invitations have been sent out. Make sure to also check your spam folder for emails by gumroad. If you have any questions, want to report bugs or just give some feedback, feel free to post here.

    • Like 13
  8. @thausmann Thanks for your quick reply! 

    This was very helpful! It seems like filePutContents works great, but you have to give it the full path:

    	//create ics file
        $icsgen = wire()->modules->IcsGenerator;
        $icsgen->set('date', '2033-12-24 12:00');
        $icsgen->set('dateEnd', '2033-12-24 14:00');
        $icsFileContent = $icsgen->getString();
        $icsFilePath = wire()->config->paths->assets.'files/'.$page->id.'/event.ics'; // use full path to create the file
        $icsFileUrl = wire()->config->urls->assets.'files/'.$page->id.'/event.ics'; // use relativ url to set the link target
        wire()->files->filePutContents($icsFilePath, $icsFileContent);
    	<!-- Link to file -->
    	<a href="<?= $icsFileUrl ?>">ICS File</a>


    • Like 3
  9. Hi!
    This is exactly what I need for a project I am working on.
    But the module is not generating any files for me. Maybe I am doing something wrong?

    Here is my code (testet locally on laravel valet and on a shared hosting server):

    function icsLink() {
      $icsgen = wire()->modules->IcsGenerator;
      // set single properties (date strings)
        'date' => '2033-12-24 12:00',
        'dateEnd' => '2033-12-24 14:00',
        'summary' => 'Event title',
        'description' => 'Event description',
      $icsPath = $icsgen->getFile();
      $out = '<a href="' . $icsPath . '">Merken</a>';
      return $out;

    The function returns the link successfully, but when I click the link I get a 404. While the link points to a file (site/assets/cache/WireTempDir/.icsgenerator/0/ics-1663226011-413791867.ics), it seems like the file is never created. Any ideas?

  10. Another thing with this module is, that it's not triggering a module resfreh automatically after installation. Depending on the module this can crash the installer at the last step. When I put this code in my template file it works (not a good fix):

    if ( !$modules->isInstalled('InputfieldPageGrid')  )  {

    I also tried to put this code in the finish.php file inside the exportet site->install folder, but this seems to be called to late.
    @ryan can you please look into this, as I would like to share my site profile for my new module Iam working on. Would be awesome if this can be fixed, as others also seem to struggle with this.

  11. Hey folks.

    I have set the familiy tab to only allow one template for chldren and also set the childNameFormat. Now the user can create a page in one step. However the new page is unpublished by default and the user needs to press the "publish" button to publish, wich is usually what you want. But for my usecase I want to force the client to allways publish without the need to press the button. Is there a way to auto publish the new page? I tried it with an after save hook, and the page is then published  but has a strange flash icon and seems to be corrupted.

  12. @MarkE I just found out, that it's easy to create permissions that are template based. The permission name must start with "page-". After you check the box on a template "Mangage edit access" (screenshot above), it becomes selectable under Access->Roles->Yourrole. You just have to click on the little arrow to open the settings first. Nice!

    Bildschirmfoto 2022-08-15 um 09.54.21.png

    • Like 2
  13. @MarkE It's a little complicated to explain ?
    I Am working on a pagebuilder module, that makes it possible to visualy compose a page.

    The page structure is defined by the items you add to your page. PageGrid creates a hidden page for every item that gets added to it (similar to how PageTable or Repeater Matrix work). Each item (a page) is based on a block template. A template can have multiple fields to hold your data (native ProcessWire templates and fields). 

    Each item has an edit link that opens that page in an overlay, some fields also have inline edit capacity. Now I want to be able to have my own permissions beside page-edit to control if the edit link of that item is visible or not to certain users. The page-edit permission would enable inline editing (or editing in general) und my new permission would display the edit link. Hope that makes sense.

    I think this could also be achived with multiple roles, so if use has role "edit-items" and the page-edit permission for that item template it will display the edit link. But I was just curoius if I could create those template permissions myself.

  14. this module is still a great time saver. Today I tried to use the feature to automatically load the script. But it's not working, even if I have the markup with the data-srcset rendered on the page. It's working if I load it manually. 

  15. 1 minute ago, bernhard said:

    I forgot to ask: How many mails will be sent? Tens? Hundreds? Thousands?

    Most likely less than 100 per day. There will propably have to be a verification of some kind to prevent spam? Maybe limit the amount of posted emails per session?

  16. @bernhard thx for your quick reply!

    2 minutes ago, bernhard said:

    Why do you think that? This is just using PW selectors and maybe comparing dates ? 

    Maybe I am thinking about it the wrong way, but how would the script be triggerd if not with a cronjob or something? How/when would you execute the code that checks the date and sends the emails

    9 minutes ago, bernhard said:
    • subscription management (what happens if ... and what if ... and so on ...)
    • mail deliverability (not too hard but you need to be careful)
    • mail layouts (responsive, different mail clients etc)

    Subscription would be a "nice to have" feature. My performance concern above was about delivering/sending the emails from the shared hosting server. I dont't think I could use external services like MailChimp to send these mails, because they will have dynamic content in them (event name, even date, etc.). So WireMail seems like the way to go here. For the mail layout I will use css tables and inline styles, but the layout will not be that complicated  ?

  17. Hey folks,
    I am working on a client website, which lists some events. Events are just pages and each event has a date.
    Now the client wants a solution, where people could click a button for each event to put it on a "reminder list". After they collected all the events they have interrest in, they can enter an email and get a message a day before each event happens.

    Since I never had the need to develop something like this before. Is there someone who can share a good approach to this? 
    I worked with FormBuilder before and there is also ProMailer (which I never used before), but not sure if that would help here. I also I took a look at WireMail Class which seems quite easy to use.

    I think the website runs on a shared hosting server, so not sure if the server could even handle it. But I could talk to the client to upgrade I guess.

    My approach would be like this:

    1. The email will be saved to each event page the person was interested in (maybe each event page has a field for this, where multiple emails could be stored). These Emails will not be seen by regular guest users. There will propably have to be a verification of some kind to prevent spam?
    2. There need to be some script/cronjob that checks if an event will happen soon (this seems complicated). Then an email will be send to every email that is accociated with that event.
    3. To comply to GDPR laws, the emails have to be deleted after the notification was send. (The client would like to keep them for future newsletter stuff, but than a unsubscribe button in the email isneeded).

    Any ideas or feedback is welcome. Thx in advance!

  • Create New...