Jump to content

rick

Members
  • Posts

    635
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by rick

  1. When I have a panel maximized, sometimes the 3 or 4 lines of the tracy bar cover some content. It's no biggie, I just expected the panel to remain in view and surprised me when it kept closing after minimizing the toolbar.
  2. Just and FYI: Ubuntu and Debian both display the correct information for me. On another note, when minimizing the tracy bar (displayed lower right) it removes whichever panel is displayed. Is there a way to keep the target panel visible when the tracy bar is minimized? It doesn't matter if the panel is opened in a new window, the performance is the same. Thanks for all your work on this module. It really is a time-saver.
  3. Today I noticed that none of the /assets/files are being included in the generated zip file nor using the directory option. The permissions are set and my PW 3.0.109 ProcessModule has no problem r/w any folder in the assets directory. Has anyone experienced this, or can offer some insight? In addition, it would be nice to have the assets folder contents listed with selectable sub-folders to be included in the final output. [edit] ProcessExportProfile 3.0.0
  4. I've been using phpstorm since November last year solely on processwire projects. The issues I have are not related to processwire but the phpstorm interface in general. I also have used vscode and other code editors with processwire projects. To be honest, I don't think phpstorm is worth the price. It is far too annoying for the benefit of intellisense than vscode, for example.
  5. For me, the upgrades module is showing every processwire option rather than only the currently installed version. Plus a couple of other artifacts I haven't tracked down yet.
  6. This article has helped me. It's still incomplete (commented at the end) but I think there is enough information to solve the issue.
  7. Thank you @Zeka. Your solution does work. The base images field allows for a local zip file to be added via the Choose File option. I haven't found a means to accomplish this from the API. For example, from the API: Download the desired file.zip file to a local folder. $this->config->paths->assets . "some-folder/" . basename( $url ); Pass the file from that local folder path to the images field. $page->images->Add( "/var/www/test/site/assets/some-folder/file.zip" ); Save the page. Does not work. However, if I select Choose File and navigate to that same folder, select file.zip, and click Open, the zip file contents are added to the images field. So there is a difference I haven't yet been able to determine.
  8. I know I have to be missing something simple. I need to specify via API a url to a zip file which contains images and have them saved in a back-end images field when the admin form is submitted. I have built a process module which generates a dynamic form and processes the form once submitted. Everything functions correctly except adding a zip archive of images to a multi-image field. The images field works fine if the zip file is selected on a local machine. The addimageurls module does not work with zip files. The wirehttp->download will save the zip file to the specified folder, but the path returned is not accepted by the images field. // $zip can be filespec or uri $page->of(false); $page->images->add($zip); $page->save(); The images field has no file limit, zip extension added, and decompress zip is enabled. Can someone provide the correct procedure please?
  9. I'm old school simple. Home and Colo's are LAMP.
  10. Yeah. ? I didn't try the full path as Robin pointed out.
  11. Bingo! We have a winner! Everyone can go home now, @Robin S done won the prize. ? I cannot tell you how long that would have taken me to figure out. I'll give you a hint: I'm old and don't have that much time. Thank you and thank you to everyone that helped. This forum community makes a defining difference between other CMSs.
  12. Yes, I tried that, along with many other permutations. Now, I'm in the middle of starting over again with a fresh install.
  13. My process module is using the ProcessHello files: This is the MyProcess.module.php without all the comments: class MyProcess extends Process { public function init() { $this->config->styles->append ... datatables.css; $this->config->scripts->append ... datatables.js; parent::init(); } // Main menu end point. public function execute() { // Display placehoder content from main menu } // Sub menu end point. // This is the method executed regardless of ajax url setting - see myprocess.js public function executeOption1() { $mytable = <<<_OPT ... _OPT; // myTableID return $mytable; // This is the data shown as the ajax response. } // Ajax end point. // This is the method that should be executed. public function executeOption1List() { // extract data from pages $result[] = [ col1, col2, ...] echo json_encode( $result ); } } MyProcess.info.php $info = array( // title, etc. // page that you want created to execute this module 'page' => array( 'name' => 'myprocess', 'parent' => 'admin', 'title' => 'My Process' ), // optional extra navigation that appears in admin 'nav' => array( array( 'url' => 'option1/', // number only for clarity 'label' => 'Option1', ), array( 'url' => 'option2/', 'label' => 'Option2', ), ) // for more options that you may specify here, see the file: /wire/core/Process.php ); MyProcess.config.php is the example provided in ProcessHello. I'm not using it at the moment. The MyProcess.js: $(document).ready(function() { $('#myTableID').DataTable( { dom: '<lf<t>ip>', processing: true, ajax: { url: './option1-list/', // I've tried with/without trailing slash, with/without './', etc. dataSrc: '' }, columns: [ { blah blah }, ], }); }); Like I said, there is something simple that I am missing, but I can't seem to find it. This works in the stand-alone modules, but does not work in the ProcessHello mode.
  14. Hi bernhard, This is a fresh PW (98) install with only Tracy, Upgrades, and Export Profile modules installed.
  15. Thanks Robin, but now the complete URL is shown in the network tab, where as only the url specified in the ajax url is shown when omitting the trailing slash. The response data is still the data generated by the execute() function. Originally, I had manually built the menu structure under Admin, and assigned separate process modules to each. The ajax requests worked. Now I am trying to refactor this to removed duplicate code, installing half a dozen process modules, etc. Using the ProcessHello structure, those "physical paths" that ajax was previously using no longer exist. Does this mean that I have to write my own routing procedure in the execute() method?
  16. Howdy all, I am having difficulty getting an AJAX URL to target the appropriate executeSomething method. No matter how I define the URL only the execute() method is called. I am creating a process module based on ProcessHello. I have sub-menu options defined which have their own paths as stated in the module.info.php file. However, an example ajax url defined as "./some-thing" does not access the executeSomeThing method. It only hits the execute() method. I have tried an ajax url as "./sub-menu option path/some-thing" and still no joy. Obviously I am missing something very simple. Can anyone shed some light on this please?
  17. Also, don't set the new page id to the current page id.
  18. There was no data associated with x-tracy-header that I could see (just an empty entry), and it is no longer present since disabling the system notifications.
  19. I hadn't noticed. I don't use that theme because of the poor ui, but that is a different story. I disabled the system notification and this issue no longer exists. So this wasn't related to tracy at all, but thanks for your help.
  20. Absolutely! I'll take a look in in a bit when I get back. I'll also get rid of that notifications module. The only reason I enabled it was I didn't like all the default messages scrolling the content off the screen. I figured notifications would be less intrusive/aggravating/cumbersome?
  21. I'm not sure if this is tracy related or not. How do you disable the notification requests? url ?Notifications=update&time=1524147545 The header shows x-tracy-ajax. This fills and scrolls the console/network pane making it difficult to refer back.
  22. How did you know I was needing this functionality just today. Great stuff! Thanks!
  23. Thanks @Robin S and @Jonathan Lahijani. I was thinking about page references, but posted the hierarchy as a simple way to show the relationship. So Robin, I agree completely, and prefer the future-proof methods as well. Jonathan listed out the organization that clears some of the brain fog. Haha. And yes, contractors are actual people. Thank you both for your insight!
×
×
  • Create New...