Jump to content

elabx

Members
  • Posts

    1,472
  • Joined

  • Last visited

  • Days Won

    21

Everything posted by elabx

  1. Could you check if there is a field that no longer exists in the backend but is being indicated as editable in the FrontendEdit?? Like, say you deleted 'text' field and now you are trying to call <edit field="text"></edit> At least this is what I get from reading the source of PageFrontEdit.module, but I don't use this module much.
  2. I am a big UIkit user too so I might be biased but I kind of share this sentiment! Maybe something we could work out as a community it to have a clear pathway to handle UI in the admin, so in order of "theming relevance" (?) have something in the docs that explain this pathway: jQuery UI CSS UIKit Less compiling of its theme (eg. keeping the UIkit's flavor of dark mode to keep the rest of components that are not used in the core admin UIs) ProcessWire theme CSS variables Aside from the visual nuances, I think having this part as organized as we can will benefit us all since all parts are useful in their own way! Then again, thanks for all the work put into this!
  3. I think you could try installing a more recent version of the Google API client that is php 8+ ready, cause that seems to be a 8+ error and from the path i can tell it's the google library that is being an issue.
  4. Do you mean the files content or just their names? I use https://github.com/teppokoivula/SearchEngine for this sort of things.
  5. I think the lack of contrast between the the background of the repeater and the current background makes the whole repeater group like a blob of text, diminishing the effect of the vertical spacing of the items. I'd also vote for having a stronger contrast, maybe if not the main color, the same "inverted" color scheme. I'd also argue that completely turning the background white could help! Although this new color scheme got me thinking I would love nested repeaters to have a lower contrast version haha, with CSS variables it's now super easy to make ti work, no CSS overrides! Exciting times!
  6. @ryangorley I haven't tested on the new theme but this has happened to me before with fields configured for example to hav a with of 70%, but instead ProcessWire's js compensates if it doesn't have a 30% element next to it (not the exact logic, but I hope I make my point through)
  7. You're right @monollonom, it doesn't seem to cache per render per call which would be the most useful case! Looking at the usage in TemplateFile class, it seems the options passed to render() get passed on to $cache->renderFile(), where we can pass on the name paremeter to specify a unique cache name. Updated the example! I had a very simple case where I was delegating the rendering of list items to another file and I was very surprised how slow everything turned, ProfilerPro was very usefull figuring this out. It wasn't even a big list, just like 40-50 items. I kept debugging what was inside the include file until finally figuring out it was the render() call that killed performance.
  8. Example: foreach($list_of_cards as $card){ // cache cleared then selector matches $files->render("inc/some-include", $vars , ["cache" => "template=some_template", "name" => "template_cache_{$card->id}"]) } Available since version 3.0.130
  9. I'd vote for this too.
  10. Hi everyone! And thanks for the great work in the new admin, I kind of also agree on the checkboxes! I'd skip the white version, your logo looks great in dark mode. I'd also vote on the customization of the logo! I think @bernhard's logo on the screenshot is just a nice coincidence, but I'd say most of the times it wont work out of the box? Been testing it a little bit my block building setup using repeater matrix ,also nested repeaters, and at first glance I kinda miss the depth the repeaters added with a slightly darker background color. Will report back with more concrete examples!
  11. I seems to me that you have a pretty clear idea overall on how to do it. The closest I've done to this I decided to use queues to handle anything having to import through that, since I had to import images too so didn't want to go into timeout issues. So the import action actually got triggered from Site A on a Page:saved hook, which passed the page ID to an endpoint in Site B, which then triggered the creation of a queue item that then got back to an "import endpoint" on Site A. The processing on Site B is managed by supervisor. The part I wouldn't know how to solve is how to temporarily setup the reverse proxy with dyndns/ngrok. First thing that comes to my mind is to maybe have a cloud based thing in the middle like Amazon SQS so you can organize the work of Site A and Site B in one place.
  12. There is a discussion going on here that could involve what's happening to you (and some of us!): https://github.com/processwire/processwire-issues/issues/2061
  13. Looks like a nice scenario for HTMX.
  14. Woah nice! U the MVP, I guess it's the usual ProcessWire double edge sword, since possibilities are up to you, well, gotta work on your flavor of AI rules. 🦾
  15. I love this goddamn AI blackmagic too, miss PHPStorm like the dessert miss the rain but what to do, their AI integration is just subpar compared Cursor's. Anyone working with rules for ProcessWire?
  16. For this error, can you try changing your session handler?? In case you are using the default, try SessionHandlerDB?
  17. I do this regularly with repeater matrix and even nested repeaters and it just works!
  18. Oh why does this happen? It worries me I might encounter this sometime.
  19. @jploch no!! sorry for the confusion
  20. I think for this specific "hierarchy" you might benefit from looking at AdminRestrictBranch and if it doesn't exactly fit your needs you'll get some ideas for hooks within it's code, although I understand you are new to ProcessWire but from the looks of your project you're in for a ride! Keep in the touch and welcome to the forums! So you might benefit from having various roles that fit the "branch" where you want to work on.
  21. I completely missed this syntax! I am living in the PHP of the past 😭
  22. I think $parent is the second parameter not the recursive flag (which is true by default)? 🤔
  23. Did this thread cursed me? (jk) Monday first hour and I have a site that's going through very odd gateway timeouts 🤣 EDIT: Indeed, server load! PHP hits hard, always have a cache layer! 😄
  24. Have you checked your server load? This is my most common case for this timeouts.
×
×
  • Create New...