Jump to content

bernhard

Members
  • Posts

    6,317
  • Joined

  • Last visited

  • Days Won

    319

Everything posted by bernhard

  1. I really like the input api variable syntax: https://processwire.com/blog/posts/pw-3.0.125/#input-api-variable-upgrades $q = $input->get('q', 'text'); +1, just a little note that you don't need the ELSE and you could also do an include to keep things organized: if($config->ajax) { include("your/ajax/file.php"); $this->halt(); // or use die() } // your template code regarding $this->halt() vs. die() see https://processwire.com/blog/posts/processwire-2.6.8-brings-new-version-of-reno-admin-theme-and-more/#new-this-gt-halt-method-for-use-in-template-files
  2. Hi @kater I've just added support for RockFinder3: https://github.com/BernhardBaumrock/RockTabulator/commit/b41362bbc4ffa29785fdfab6462ebaaabdabef41 Usage is the same as with the oder rockfinders, though the commit also includes an example ?
  3. Could you please elaborate what you mean by "can't make it work"? Also the statement "seems like it's great for visualising results" shows that you may have misunderstood what it is or does, because it is really not for visualising data but for FINDING data ? It does exactly what you state you need: Finding data and returning a plain array in a performant way. Visualization can then be done however you want. RockTabulator is a little cumbersome, but tabulator.info is great and you can easily build a custom integration that renders thousands of rows. You don't even have to use RockFinder as data source, you can also use a custom ajax endpoint to get junks of data: http://tabulator.info/docs/4.6/data#ajax-progressive Many options, but I'd really be interested in the part "can't make RockFinder3 work" ?
  4. This is a great concept, thanks for creating a module for it - have to try that soon! ?
  5. = I have not thought about that, but it's a good idea and easy to implement. = I have not thought about that and I'm not willing to add any other services. ? ?
  6. Hi @Mats thx, this has been on my wishlist for quite some time ? Have you thought about also integrating other services like https://www.pexels.com or https://pixabay.com ?
  7. @psy Could you please try to get https://github.com/BernhardBaumrock/tabulator.test running - then we'd have the same environment wich would make debugging / helping a lot easier!
  8. Hi @psy Does it work if you change that to ->addColumns(['title', 'booking_status']) ?
  9. Hey @dotnetic could you please change the translation of "move" from "bewegen" to "verschieben" ?
  10. Seems that things changed slightly ? This worked for me today: Translate file /wire/modules/Inputfield/InputfieldDatetime/types/InputfieldDatetimeText.php Set path: /wire/modules/Jquery/JqueryUI/i18n/jquery.ui.datepicker-de.js Search keys: datetime, date picker, monday, translate, sunday, german
  11. Hi @Crowdland Technology Thx for the report - the wrong version compare is fixed in v1.0.7 ? I'd need more info on that - what is the exact query you used? What is your setup? What is the output (dump+sql)?
  12. Another question: Any ideas how I can transform this: into that: ? ?
  13. v0.0.11 adds support for repeater matrix fields ? Thx to @aComAdi of https://www.a-commerce.ch/ for sponsoring this update! ? $rm->setMatrixItems('your_matrix_field', [ 'foo' => [ 'label' => 'foo label', 'fields' => ['field1', 'field2'], ], 'bar' => [ 'label' => 'bar label', 'fields' => ['field1', 'field3'], ], ]);
  14. Hey @Sebi have you thought of registering $twack as API variable? // in your module $this->wire('twack', $this); // in any template // no need for $twack = $modules->get('Twack'); $general = $twack->getNewComponent('General');
  15. Didn't take that as offense at all ? Just tried to make clear that I have already thought of that but I don't plan to implement it any time soon. But if anybody would be up for it, I'd be more than happy to assist or to pull the changes ? Sorry if that was not clear.
  16. Thx for that report @elabx ? The other module works totally different. My migrations can be run from anywhere, anytime. That makes it a lot easier to use but of course this has drawbacks. Keeping track of with migrations have already been applied is more complicated. I'm not sure how that could be done exactly. But I have to say that since I'm using RockMigrations I have not REALLY needed such a feature. My main goal was to make the changes as easy as possible. Migrations can always be applied several times so it does not really matter if they have been applied or not. But I'd love to have a good concept for that and since RockMigrations is totally free and open source I invite anybody to contribute and improve it ? I have lots of other more important things to do. Command line support sounds interesting though. But I'm not sure if that would bring a huge benefit compared to the tracy console. And even more I wonder if it might make a lot more sense to have a command line module that can be used by any other module. Not one that is locked to RockMigrations...
  17. Sorry, of course you get the ids! ? But you can already be enough depending on your situation. Do you dump lots of data? Or is in-memory an option? What does that mean? How do you know? How does a tracy dump look? Did you follow the docs? https://github.com/baumrock/rockfinder3#relations Did you already read about callbacks? https://github.com/baumrock/rockfinder3#callbacks
  18. Do you guys have a recommendation how to sort method names of a class by their name alphabetically? Thx ? // turn this Class Foo { public function foo() {} public function bar() {} } // into that Class Foo { public function bar() {} public function foo() {} }
  19. Ok, now I get it. If you used a page reference field on your order template that holds all related invoices you'd get exactly the output you want just by adding this field as a column in the finder. Another option is using relations: https://github.com/baumrock/rockfinder3#relations 3rd Option is building your own column type: https://github.com/baumrock/rockfinder3#custom-column-types
  20. What kind of fields do you have? Page reference? Repeater? That's all necessary informations... What finders did you try already?
  21. // not tested class TextformatterP2BR extends Textformatter { public static function getModuleInfo() { return [ 'title' => 'P2BR', 'version' => '1.0.0', 'summary' => 'Textformatter that strips all <p> and replaces </p> by <br>', ]; } public function format(&$str) { $str = str_replace("<p>", "", $str); $str = str_replace("</p>", "<br>", $str); } }
  22. Hi @zoeck, could you please provide an easy to grasp example (like cats and dogs) with example data and the output you want? // template cat id | title ----|------- 1 | foo 2 | bar
  23. Thx @zoeck I've added a shortcut method getRepeaterTemplate() for that: https://github.com/BernhardBaumrock/RockMigrations/commit/dd741064cd19b661bdcb441cdabe153b3abe8e57
  24. Hm, that's interesting - I didn't think about that ? I think it's not too late for that change and will make using RockFinder3 easier, so I just committed that change, thx!
×
×
  • Create New...