Jump to content

elabx

Members
  • Posts

    1,511
  • Joined

  • Last visited

  • Days Won

    21

Everything posted by elabx

  1. elabx

    I'm back

    Awesome to see you back around 🙂 Game changer, so glad to hear about this!
  2. Always insterested in this sort of projects, thanks for sharing!
  3. This looks amazin @Peter Knight, are you releasing this to the public or as a paid module?
  4. Glad to hear that! In the age of AI I think it's hard to get your mind to have patience and stop to learn the fundamentals, so kudos to you!
  5. Just seems more appropiate! Since WireArray is the base iterable array type in ProcessWire, it's a really handy way to work with lists of things imho. PageArray is meant to work for situations that need pagination from my understanding. Here the intention is to import Pagefile objects returned within a collection (Pagefiles, heads up on plural!), from the findTag method. So you end up with a WireArray containing Pagefile objects. I haven't tested any of this so please bear with me if there are any errors! You're absolutely right! (Claude pun intended) it should be $item as the anonymous function parameter. The syntax for use (&$images) is to pass the WireArray as reference into the context of the anonymous function, the anon function wouldn't know about the $images variable if not passed like this. If we didn't use the "&" we would be passing the value not the reference to the variable and we wouldn't be able to use $images as a "bucket of Pagefile objects". Example.
  6. I can guarantee from experience all these work together fine. This could be another logic for your what you are trying to achieve, although I don't see anything wrong in your snippet! Just figuring out that if you are getting started you might find these examples useful: // assuming section is the name of the repeater $projects = $pages->find("template=project, section.images.tags=gallery"); foreach ($projects as $project) { $title = $project->project_header->first()->project_title; // Maybe something like this to get images from any of the repeaters? $images = new WireArray(); $project->section->each(function($images) use(&$images){ $images->import($item->images->findTag("gallery")); }; foreach ($images as $img) { echo "<a href='{$project->url}' title='{$title}'>"; echo $img->render(); echo "</a>"; } }
  7. My personal solution for this issue, without using third party modules, has been: Setup a page reference field on the home template, that lets me pick the projects I want to showcase, and I make the assumption that l'll pick the first image of the gallery of each project. So i the home template you'll end up with something like: <div id="masonry-gallery"> <?php foreach($page->portfolio_pick as $project):?> <img src="<?=$project->gallery->first->url?>"> <?php endforeach ?> </div> - gallery being the field within the project template. - portfolio_pick being the page reference field on the home template. Another thing I've done, but that I'm not a huge fan of for certain uses, is adding a extra fields to the image field, in this example, the field "gallery" in the project template. So you can then code something like this on the home template: <div id="masonry-gallery"> <?php foreach($page->portfolio_pick as $project):?> <img src="<?=$project->gallery->findOne('is_main_image=1')->url?>"> <?php endforeach ?> </div>
  8. That's a bit of the AI bragging, still missing field/template creation to put an example. I focused first on page CRUD. This looks amazing 😮
  9. Worked on this the last couple days: https://github.com/elabx/processwire-mcp just tested it yesterday, so not a lot of usage.
  10. You mean something like this?? https://cursor.com/docs/agent/browser I started doing this with Claude and it does catch the error screens and fixes the bug.
  11. I though you were talking about THIS, now I just furiously started prompting all the bugs meanwhile I go reviewing and doing stuff on my own. Now just boostrapping ddev somwhere (gihub codespaces?) , some E2E testing, feedback loop till acceptance and out of work lol
  12. No! they would hold the placeholder reference! Something like <script src="{APACHE_SCP_NONCE}"> Then swapped by apache right before delivery.
  13. Apache just does it faster from what I remember.
  14. I forgot there was one more complexity, which is actually adding the nonce to the response. I remember doing it with mod_substitute and there seems to be an easier way using Apache SSI. Can't remember if I actually tried SSI.
  15. I solved this once for frontend usage using mod_cspnonce, which created the nonces per request right on Apache. This way I was able to keep using ProCache and not having to manage a CSP list in the header. I guess that for ProcessWire admin purposes, hashes implementation could work better? Also there's the caveat of scripts that generate other scripts, like GTM, which need a special implementations: https://developers.google.com/tag-platform/security/guides/csp
  16. I changed the module name on github and that seems to have messed something up since I cannot add the module to the module's directory 🤔 At least that's what it seems since it's the only different thing I've made that's different from other modules I have published. Anyone know if this could be an issue? Thanks!
  17. Update this can be done just with Inputfield classes, no Fieldtype is really need, simplified and renamed: https://github.com/elabx/InputfieldRadiosImageLabel
  18. I'm still a big fan of using Shopify and now with web components it's even nicer to integrate the look and feel of your site into the whole layout of the booking widget.
  19. REALLY interesting, thanks for chiming in. Where is this Allegretto plan explained I can only find https://platform.moonshot.ai/docs/pricing/chat#concepts Am I even talling about the same thing?
  20. Is anyone going the way of SpecKit, BMAD, Opensec, superpowers?
  21. Around 100-150 USD on cursor, on the 20 plan, and also probably wasting a lot of money too since I pay OpenAI (like their webUI), gemini (hate their web UI but I like their deep research and images) and now Claude. Probably have to spin one of the agents to make me a reasonable budget or I'll go broke. Anyone tried Kimi? Getting very good impressions from peers.
  22. Used Cursor for a few months! Now using Claude inside Cursor lol Why? To be honest sometimes it's difficult to actually grasp and put into words, but I'd just say I go with "feel" and right now Opus just feel really nice. Also in general in any AI tool what's invaluable now is using MCPs: Figma, Notion, Gitlab, Chrome. Testing using ddev-claude-code as of today to just let it run wild in docker. Question for ddev users, anyone found a projects that lets you manage multiple worktrees of the same project? But at the same time, copies anything related to the php project? For example in case of processwire, the site/files. And override the ddev name, do to; site-dev1.ddev.site, site-dev2.ddev.site. Every undocumented AI agent doesn't catch FieldtypeOptions field evaluates "truthy" you gotta check $field->id 🤣. Maybe I should definitely find a way to include something like context7 but I do fear prompt injection (aha, but let claude run wild on its own? haha). To be honest, it now always feels what "doesn't work" are always my own boundaries of time and multitask lol I am making a ProcessWire MCP inspired by the threads around and I think it could be very valuable but for now having AI executing script through the CLI in ddev is also amazing and just gets me there, of course using the one and only RockMigrations. An maybe an effort that is not about my docs, but my customer docs, is a skill that makes a documentation site for the specific processwire installs in Notion pages. What an insane amount of module development is being done now right?!
  23. AMAZING! Ver interesting idea! Although in general I've always though of this The Media Library of ProcessWire as it's own Inputfield/Process module combo! Second thing, from what I'm understanding, if you'd want to reuse an image in two pages you'd still get two copies right?? Have you thought of using something like flysystem and possibility to have buckets/containers of media . This idea pretty much comes from what I've seen a lot in other CMSs! Maybe there could even be a ProcessWire adapter? So that in instantly catches up on the ProcessWire file structure? Just wishful thinking though! Question, is the UI built with UIKit? UI wise, in general I really like what I see! For sure there's details I would leave out of the first screen, but whatever, not sure it's the moment to comment on small details! Would gladly pay for this module but would also wish it to be open source so that it can be picked up if for some reason dev momentum gets stalled, life happens!
  24. I normally increate the max_input_vars value but I understand you might not have access to that. Although I find it weird that the modules uses so many input variables to backup the database. Maybe you can try Adminer through TracyDebugger?
  25. I think this could be a really great addition to LoginRegisterPro.
×
×
  • Create New...