Jump to content

androbey

Members
  • Posts

    94
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

androbey's Achievements

Full Member

Full Member (4/6)

37

Reputation

  1. Hi @Sebi, thank you for your willingness to help, I appreciate it. It's pretty embarrassing now, but the mistake was obviously mine 🫥 - to debug another problem, I echoed data on my own and canceled further processing using die(). I never changed the code, as it returned the desired result. Your code does exactly what it should. Sorry for the inconvenience!
  2. Hi @Sebi, I noticed a rather strange symptom after upgrading to 1.4.2 on my system. For some endpoints (GET) I got empty responses (HTTP status code 200). I had a look at it and could resolve it, when I uncommented this line https://github.com/Sebiworld/AppApi/blob/main/classes/Router.php#L473 and only called clearOutputBuffer if there actually is an last error. However I don't know if that has any side effects or if the intented purpose is destroyed with this change..
  3. Hi David, just to confirm, you want to send mails with an Exchange online mailbox? If yes, you may be able to use SMTP AUTH until September 2025 (using SMTP to send mails with ProcessWire). So this would at least give you some extra time.
  4. You mentioned you are using option 1 from here https://processwire.com/docs/more/multi-site-support/. But if you follow option 1 you would have a separate db for all four sites. What are you doing to have only one db, are you using any module?
  5. Hi @nexuspolaris, with only option 1 you cannot simply edit data for different sites. See note at the disadvantages: But you still have two options (as far as I can tell): Setup a web service for each site (probably requires some effort) Using multi instance feature of ProcessWire (as I would prefer). Have a look at https://processwire.com/blog/posts/multi-instance-pw3/#using-multi-instance-in-pw3 With this feature you can indeed use the PW API.
  6. Great, thank you very much for your tip! This has brought me on the right track: I have now requested a fresh copy from the database (via selector). Previously, a Page object was passed directly, which seemed to be just an instance of the Page class. Now it works!
  7. Hi all, I have once again a probably unique request. For a project I am using a SlimPHP based approach, which is connected to a ProcessWire instance via bootstrapped API. In general this works very well - except when using custom page class methods. Method Page::getTest does not exist or is not callable in this context Am I missing something? Or is this not supported at all? I tested it with both version 3.0.228 and 3.0.227.
  8. I'm not sure I understood your requirements correctly either. Nevertheless, here's a hint, although I'm pretty sure that's not what you meant. I think that currently only applies to CKE. In the editor field under input you have the possibility to select an image field that will be used for drag&drop (does also work for pasting an image from clipboard). (Screenshot only in German right now)
  9. Can you maybe try to use filename property? Single file has as far as I know no path property. $mail->addAttachment($file->filename, $file->name);
  10. @applab I actually encountered a similar problem some time ago. But there is actually a setting option so that the paths can also remain separated. Hopefully this works for you, too. $config->setLocation('templates', $config->path('site') . 'templates-dev/' . $user->name . '/');
  11. Hi @applab, I'm sure some expert has a useful answer (I'm no expert unfortunantely). But have you tried/can you try solution described here?
  12. No, thank you for your help! Much appreciated!
  13. Thank you for your suggestion. I have tried to use an or-group. This also does not work, as the ordering of the or condition in the selector has no effect. So if I use the or group, the selector would return the first page where either condition is met (even if type is not Type1). So there is no weighting (at least I did not find any).
  14. Yes, good spot, you're right. Should be "Equipment2". And you're absolutely right, matching the equipment (without matching both type and equipment) is the fallback. With a little restructuring (above is only simplified structure), I now just use two selectors (better than a loop which checks if there are pages matching a type). //Are there any stores which both match equipment and title? $pages->get("template=store_template, equipment_ref.title='Equipment2', type.title='Type1'"); //If no: "Fallback" selector.. $pages->get("template=store_template, equipment_ref.title='Equipment2'");
  15. Thank you for your suggestion. That would be a ideal solution if there would be a 1 to 1 connection. But unfortunately it's more complex. //would return null (because Store2 has "Type1", but Store2 has no "Equipment2"), so should return Store1 (where Equipment1 is available) $pages->get("template=store_template,equipment_ref.title='Equipment2', type.title='Type1'); Nevermind, probably was a silly request in first place. It works with loops and performance loss is minimal (only small data set).
×
×
  • Create New...