Jump to content

Martijn Geerts

PW-Moderators
  • Content Count

    2,750
  • Joined

  • Last visited

  • Days Won

    31

Everything posted by Martijn Geerts

  1. There has been a small update on this module thanks to @Jonathan Lahijani. @Jonathan Lahijani added: PHP files can have a comment called "Description" at the top of the file which will be displayed in the dropdown if it exists. Check this option to disable it.
  2. // Could you test this??? wire()->addHookAfter('Field::getInputfield', function (HookEvent $event) { $event->return->inputfield = 'InputfieldSelect'; });
  3. Updated ACF to make it compatible. (Hope this fixes it.)
  4. Thanks @Macrura, I will update the module to make it backwards compatible with old PHP soon....
  5. Actually I don't understand the error, the only thing I can imagine is that ext is not there... Are you willing to replace the isset line with the code above?
  6. @Macrura What is $ext at that moment? Could you try to replace the isset line with: if ($ext !== 'js' && $ext !== 'css') return false;
  7. Hi Guys, AdminCustomFiles received some well-deserved love. (an update to version 0.9.61) There were several bug fixes and some major changes. I did break compatibility on several aspects of this module but after this update everything should be fine. - You can upgrade from 0.8.7 and below. (we take care of all settings) - The JSON output is now fully customizable. Previously I hooked *ProcessController::execute* and inserted the files to the config->scripts and files but with ProcessWire 3.x these were not the last files. Now we use Page::render to insert the files that should fix it. For the config.AdminCustomFiles javascript object we now have a base class that can be extended easily. When you created the class, you can select the class and save the module configuration. More info in the module configuration and in the example class below. /** * AcfConfigCustom * * Create a file in your AdminCustomFiles folder and start the filename with * ‘AcfConfig’ then ‘a custom name’ and add ‘.php’. * * In this file create a class with the basename of the file without the * extension. This class should extend AcfConfig and implements Module. * * Properties of the subclass * * @var AdminCustomFiles $adminCustomFiles Instance of AdminCustomFiles may you need it. * @var Page|NullPage $editPage In processPageEdit it would be the page you are editting. * @var Template $editTemplate Template from the page above. */ class AcfConfigCustom extends AcfConfig implements Module { /** * Optional ready method * * - Use it or leave out. * - We call ready() before calling jsConfig(). */ public function ready() {} /** * Required jsConfig method * * Return a PHP array ready to be used for $config->js * * @return array */ public function jsConfig() { $process = $this->wire('process'); return array( "activeProcess" => $process->className(), "editPage" => $this->editPage->id, "editTemplate" => $this->editTemplate->name, ); } }
  8. @netcarver Thanks for lookin' into this. I will take a little time this week to update the module. Thanks steve.
  9. Awesome!!!, just what I need today!
  10. I wouldn't use a formula for this I would use a 'pecentage value' and use HSL color. hsl(0, 100%, 50%) is red, hsl(100, 100%, 50%) is green the color traverses over yellow. http://hslpicker.com/#5f0
  11. Thanks @adrian, issue should be fixed right now.
  12. @matjazp If you need the old AdminCustomFiles: https://github.com/Da-Fecto/AdminCustomFilesLegacy There's so much changed in the admin of PW3 so AdminCustomFiles (the old) would not fully work in PW3 without a lot of extra code. Thereby I think we should move on and drop non namespaced PW. Then there's the reason I have/had ~~almost~~ no spare time this year. We restaurated our old house (stripped bare & build up), next I had a job, for 40 hours a week plus the insane driving hours to the job.
  13. Thanks @bernhard, think I will rty that route. Hopefully have some spare time this week to manage that.
  14. @PWaddict I think i'm locked in... don't know how to solve this one. $config->scripts and $config->styles are echoed before those admin scripts are echoed. I don't know what I can do about that.
  15. @PWaddict Thanks for your report, I've added an extra hook (after AdminTheme::getExtraMarkup) and updated the version number. Changes are uploaded to GitHub. https://github.com/Da-Fecto/AdminCustomFiles
  16. Hi PWaddict, I see. There're changes in the way themes are handled. I gonna investigate.
  17. ProcessWire's database abstraction is the best of all CMS systems I know.
  18. Don't know if it still functions: https://github.com/Da-Fecto/LimitChildren/blob/master/LimitChildren.module
  19. @Peejay there are some more little improvements coming up but there are still a few annoyances. But there will be updates soon, sorry guys for the delays, but free time is sparse these days.
  20. Hee PeeJay, I will see if I have time soon and if I can reproduce and fix it. Thanks for the report.
  21. You could take a look at http://php.net/manual/en/class.numberformatter.php
×
×
  • Create New...