• Content count

  • Joined

  • Last visited

  • Days Won


rick last won the day on December 26 2015

rick had the most liked content!

Community Reputation

448 Excellent

About rick

Contact Methods

  • Website URL

Profile Information

  • Gender
  • Location
  • Interests
    Web applications, scotch, hunting, fishing, scotch, graphic design. Did I mention scotch?

Recent Profile Visitors

2,790 profile views
  1. rick

  2. rick

    This article has helped me. It's still incomplete (commented at the end) but I think there is enough information to solve the issue.
  3. rick

    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.
  4. 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?
  5. rick

    I'm old school simple. Home and Colo's are LAMP.
  6. Yeah. I didn't try the full path as Robin pointed out.
  7. 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.
  8. Yes, I tried that, along with many other permutations. Now, I'm in the middle of starting over again with a fresh install.
  9. 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.
  10. Hi bernhard, This is a fresh PW (98) install with only Tracy, Upgrades, and Export Profile modules installed.
  11. 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?
  12. 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?
  13. Also, don't set the new page id to the current page id.
  14. rick

    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.
  15. rick

    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.