Jump to content

Soma

Moderators
  • Posts

    6,808
  • Joined

  • Last visited

  • Days Won

    159

Everything posted by Soma

  1. I would just use random sort: $pa = $pages->find("template=basic-page, sort=random, limit=4"); findRandom is more for in memory or image arrays. As for the cache. No they won't get through, that's the purpose of cache. You could load them via ajax and inject them, after all they're at the bottom nobody will see they're loaded after.
  2. Updates to ModulesManager (now 2.0.0) to use jQuery DataTables, and more convenient updates http://t.co/DB91VZWn7E #processwire

  3. I thought I did. But maybe a clarification wouldn't hurt. Also I'm maybe going to delete the DataTables module..
  4. There's no old and new one. DataTables was a proof of concept integrating it in a admin page. It included the jQuery DataTables plugin, but unfortunately it may wasn't a good way to. JqueryDataTables is a js module like Fancybox. It is a "integration" of the jquery plugin for developers to use datatables in their modules. It won't be loaded unless you do so. An example would be the ModulesManager. They can coexist if you will.
  5. if(!$this->modules->isInstalled("JqueryDataTables")){ $this->error($this->_("ModulesManager requires 'JqueryDataTables' module since version 2.0.")); return; } The one who can read is clearly advantaged
  6. If this message shows up JqueryDataTables isn't really installed then. I just installed update to various installs and works fine. That first message is rather strange.
  7. I'm proud to announce a "major" update to 2.0.0. I spent most of the weekend to make some changes, that makes it more convenient to browse, download, update, install and edit module from within ModulesManager. Change log 2.0.0 added jQuery DataTables to list modules. This enables convenient browsing with pagination, live search filter and sorting. State saving via cookies is enabled so if you come back it shows the table how you left it. added iframe modals for download, update, edit and install links. So you can now install modules without leaving the ModulesManager page. This is using Magnific lightbox by default, if installed, otherwise it will take the older Fancybox. some more translations added Update Note: This version requires you to install JqueryDataTables module before you will be able to use the new 2.0.0. I hope I haven't forgot something on the way. My tests so far went well and everything still works as before, just a little more awesome Thanks and enjoy the rest of the weekend.
  8. That's actually cool! Even more if you would give me a like!
  9. That was just a proof of concept back then that included the datatables plugin which doesn't allow other modules to use it. This now is a plugin integration so everybody can use it without including datatables on their own.
  10. jQuery DataTables 1.9.4 This module adds the great jQuery DataTables plugin for use in ProcessWire. You can load the module in the admin from any of your module using: $this->modules->JqueryDataTables; This will load the module and add CSS and Javascript from DataTables. This mostly would be used by a custom admin Process module. Note: Loading this module will just attach the necessary files to the admin. To use it you would need to add your own jQuery scripts and init the DataTables with something like. $("#mytable").dataTable(settings); For more informations on the DataTables options and API refer to http://datatables.net/ Download: http://modules.processwire.com/modules/jquery-data-tables/ https://github.com/somatonic/JqueryDataTables I included only the necessary files, and removed examples and docs from the package. NOTE: To avoid confusion, THIS module has nothing to do with my ProcessDataTable module for ProcessWire! ProcessDataTable was a proof of concept integrating it in a admin page. It included the jQuery DataTables plugin, but unfortunately it may wasn't a good way to. JqueryDataTables is a special js module like Fancybox. It is a "integration" of the jquery plugin for developers to use datatables in their modules. It won't be loaded unless you do so. An example would be the ModulesManager. They can coexist if you will.
  11. You need to add $events argument to your hook function I guess.
  12. 'Family care' returns result so maybe 'day' is a stop word or only 3 letters.
  13. Thx teppo. I'm not saying anything anymore.
  14. There is no argument to first() its always the first.
  15. $images = $page->images->slice(0,3);
  16. Yes there was problem with top save button not saving but show page saved. It was fixed in 2.3. I think and there is tons of threads about it.
  17. Adrian what I don't like about that module is that it creates new templates/fields for every select created and not in a reusable way but maybe you want to reuse one. Is it possible as I also think it may good for others to keep it flexible.
  18. Just select radios as the input for the page field.
  19. Or simply use the getPage() method. $page = $event->object->getPage() https://github.com/ryancramerdesign/ProcessWire/blob/master/wire/modules/Process/ProcessPageEdit/ProcessPageEdit.module#L1110
  20. The force shall be with you! Enough padawans there is not.
  21. Soma

    20.000 massages

    Too bad, WilllyC missed the 50'000th massages. Congrats PW!
  22. Quite old screenshot. It's in since maybe over a year?
  23. RT @teppokoivula: At the moment ProcessWire is in second place in Bitnami contest. If you'd like to see PW packaged by Bitnami, vote: http:…

  24. Up the memory max of php. That solves upload of larger files often. Also looking at console can help or server error logs. Sometimes php version also is a problem with 5.2.
  25. I think one thread is enough.
×
×
  • Create New...