Jump to content

elabx

Members
  • Posts

    1,523
  • Joined

  • Last visited

  • Days Won

    21

Everything posted by elabx

  1. elabx

    AlpineJS

    Well it's a very simple module! It just loads Alpine into the ProcessWire admin to be usable from other modules.
  2. https://github.com/elabx/FieldtypeRecurringDates Well a few summers later, finally got like a sort of working version. For info please take a look at the repo's readme. It's still super alpha but going to deploy into a couple websites to replace Recurme so wish me luck. This module is only a Fieldtype and Inputfield, there are no "markup" modules as there used to be in Recurme. I'd appreciate any testing or any kind of comments.
  3. elabx

    AlpineJS

    Creating this thread for the AlpineJS module ? https://github.com/elabx/AlpineJS
  4. Thanks for the heads up!
  5. Hi! Wondering if there was an example of this scenario (multiple/dynamic config inputfields) with the "new" module configuration through a separate ModuleConfig derived class?
  6. Struggled a bit with this recently, not anymore! Thanks!!
  7. Hi! Anyone got a clue on how to implement Google Recaptcha on comments forms? I don't see a way to hook into the processInput method of the CommentForm class. Maybe I'm looking at it on the wrong angle?
  8. Could you try $page->setLanguageValue() instead?
  9. I can at least envision a module filling up a full text search table on a page save hook! Could be pretty useful to have at hand if budget doesn't cover an ElasticSearch/Lucene/Meiliseach instance. Which is my current scenario lol
  10. @rastographics I have also experience that the main site's search doesn't work very well either ? Maybe we should open an issue?
  11. I have found that SQLite has full text search and it is quite fast! I built a couple million rows table and i'm very impressed!! Has anyone had any experience implementing this either in ProcessWire or in another context?
  12. I think this would gain more visibility in the requests repository issues, I've had this issue too! I recently had a request and it got action pretty quickly. https://github.com/processwire/processwire-requests/issues
  13. I can click the button just fine on android Chrome, but can also confirm you are not going crazy I tested in my wife's phone which is an iphone and I can replicate the behaviour! It takes too taps to click the button!
  14. I've seen a lot of commits to support PHP 8+, so I'd say the core will most likely be stable. I'd be more worried about third party modules that might not have been updated recently, so if you are able to, I'd recommend you make a backup and test first in another install with the same environment.
  15. If on Mac, I use ScreenFlow. I think it's a bit pricey but for me it hits the sweet spot in being easy to use and richness in features, in particular I really dig it includes a non linear editor.
  16. Maybe a user permissions issue? It has happened to me that if the system user running the server cannot write the compiled processwire files (if compiled is turned on) it all fails. Though I do get warning in the processwire admin which you don't mention.
  17. Hi! For some reason all my comments added through API get added in the pending state and I don't understand, has anyone had this issue?? Running this through a CLI to read a CSV. $found = $pages->findOne("name={$some_string}"); $found->of(false); $c = new Comment; $c->stars = $stars; $c->text = "$title\n$text"; $c->created = strtotime("first day of $created"); $c->set('status', 1); $c->status = 1; $found->comments->add($c); $found->save('comments'); $found->comments->each(function($item) use($found){ echo print_r($item, true); $item->set('status', 1); $item->status = 1; $found->save('comments'); }); $found->save('comments'); It would seem it has something to do to do with being created in the same request?? I am able to run this in the Tracy console and it just works ? EDIT: Just notices that the $page->comments value is empty when I run this through the CLI and the status is 1! EDIT2: I guess and empty CommentsArray is reasonable since there are not approved comments? Ended up doing: $query = wire('database')->prepare("UPDATE field_comments SET status = 1 WHERE pages_id = {$page->id}"); wire('database')->execute($query); Am I doing something wrong when creating the Comment object? That it's status doesn't get saved when saving the comments field?
  18. damn yessss
  19. @bernhard updated it! For anyone that might come across adding something else on the admin theme's markup, here's a recommendation from Ryan: $src = "https://unpkg.com/alpinejs@3.10.2/dist/cdn.min.js"; $this->wire()->adminTheme->addExtraMarkup('head', "<script src='$src' defer></script>");
  20. @kongondo Also managed to load AlpineJS like this: https://github.com/elabx/AlpineJS Although only works with the edited core version files mentioned above lol Then on the Inputfield on init(), I can do: $this->modules->AlpineJS This was copied from: https://github.com/somatonic/JqueryDataTables Only adding the composer dependency since that's how I want to manage it through the Inputfield actually using Alpine
  21. Thank you both for your answers! I tried to remove the hook like you suggested but the script still gets appended twice in the presence of two of the same field ?. Also added the request here: https://github.com/processwire/processwire-requests/issues/468 Also made the edit here: https://github.com/elabx/processwire/commit/9a261c18a232845d92abe8e411fa48a381563dfd I also dig your version @bernhard , like, if I want defer without value, this kinda looks weird? array( [ 'defer' => ''] )
  22. Just noticing I actually messed up that module with a commit I made but someone already sent a fix, let's hope it gets pushed.
  23. @LexSanchez So, I actually introduced a bug in the module with my last PR sorry about that ?, @gmclelland seems to have pushed a fix for this in this PR, maybe also push the version? Thanks again!
  24. I use this fantastic module: https://processwire.com/modules/video-or-social-post-embed/
  25. @kongondo just out of curiosity, do you know what it would take if we wanted to share the same AlpineJS source for our modules? Have a ModuleJS derived AlpineJS module?
×
×
  • Create New...