Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


flydev last won the day on December 13 2018

flydev had the most liked content!

Community Reputation

1,470 Excellent


About flydev

  • Rank
  • Birthday 09/21/1983

Profile Information

  • Gender
  • Location

Recent Profile Visitors

3,924 profile views
  1. Hi @webhoes Try the following corrected hook : // /* to figure out */ $this->addHookAfter('AdminThemeFramework::getUserNavArray', function(HookEvent $event) { // Get the object the event occurred on, if needed $AdminThemeFramework = $event->object; // An 'after' hook can retrieve and/or modify the return value $return = $event->return; /* Your code here, perhaps modifying the return value */ $navArray[] = array( 'url' => '/My studbooks/', 'title' => $this->_('My studbooks'), 'target' => '_top', 'icon' => 'eye', ); // merge the return value with your own nav array $return = array_merge($return, $navArray); // Populate back return value, if you have modified it $event->return = $return; });
  2. @kkalgidim read my post again
  3. Hi, Did you installed the following core module ? : LanguageSupportPageNames It allow you to define a specific page name for each language and editing them in the tab Page > Settings of a page. (I think you are missing this one). To answer your question : If you have URL Segment enabled on the template then you can do the following : $segments = $input->urlSegments(); echo end($segments); or $segments = explode('/', parse_url($page->url, PHP_URL_PATH)); echo end($segments);
  4. FYI , there is a really good language-pack for French : https://github.com/v-maillard/pw-lang-fr All work already done
  5. Nice website done @MarcoPLY . The trad in french still show some menu in English. Another issue with the trad is the core phrase from the InputfieldPassword.
  6. flydev


    @Wanze please force the module directory update
  7. You can give a try to Duplicator (do not forget to use the "dev" branch).
  8. @thibaultvdb I think that by default on XAMPP your ProcessWire installation is in a subdir, and I bet that the module is giving you as api endpoint something like : /subdir/api instead of the /api endpoint. You should ask your friends to help you to setup your localhost environment to use a domain like http://mylocalwebsite.local To get started, you can follow the second answer here : https://stackoverflow.com/questions/16229126/using-domain-name-instead-of-localhost-in-with-https-in-xampp or follow this tutorial to use AcrylicDNS (the best solution IMO, do not be afraid, it's really easy to setup) : https://www.ottorask.com/blog/automated-apache-virtual-hosts-on-windows/ Good luck.
  9. Hi @Crawford Tait First of all, did you tried the official upgrade method explained here https://processwire.com/docs/start/install/upgrade/ - result ? About using the RestApi module, I think it "complicate" the whole thing, and this module is only available for ProcessWire => 3.0.98.
  10. You can use sort() on WireArray derived objects : $search_options = $templates->get("catalog_item")->fields->sort("label"); // or sort("-label")
  11. Hi Louis, 1- In the form, change the name of the input : <!-- from --> <input type="file" id="preview-name" name="preview-name"> <!-- to --> <input type="file" id="preview_name" name="preview_name"> 2- In your JS code, use FormData() and add the contentType prop to the $.ajax call (that's the key here) : $('#submit-preview').click(function(e) { e.preventDefault(); title = $("#preview").val(); image = $('input[name=preview_name]').prop('files')[0]; // modified form_data = new FormData(); // added form_data.append('preview_name', image); // added form_data.append('title', title); // added console.log(title); console.log(image); $.ajax({ type: 'POST', data: form_data, url: '/development/upload-preview/', contentType : false, // added processData : false, // added success: function(data) { console.log("Woo"); }, error: function(xhr, ajaxOptions, thrownError) { alert(xhr.responseText); } }); }); 3- The ajax template file look good. The main reason that WireUpload doesn't work here, is because it couldn't find the right field name (form input name) : $u = new WireUpload('preview_image');
  12. Just to let you know that the idea is brillant and your module come in handy. I am sure we will have some feedback and pull-requests in the next weeks. To give some more visibility to the module, you could show us how/why to use it in conjunction with the others SEO modules existing here. Thanks again mate
  13. I remember to had this same issue with PhpStorm. Open templates with Notepad, unwanted char (��) will appear or use SublimeText 3 with encoding UTF-8 without BOM.
  14. Look like you are using the default "sitemap" page/template rendered by the renderNav function. FYI, it's just a template which render a dummy navigation. If you want a sitemap.xml, you have to code it yourself, or use a module. To get started, check this thread : Modules : MarkupSitemap https://modules.processwire.com/modules/markup-sitemap/ SeoMaestro https://modules.processwire.com/modules/seo-maestro/
  15. I tested your setup in a VM but with a Linux distribution instead of a Windows and as a result , ProcessWire run smoothly on it, even the default search feature. I will install a Windows server today just to see if there is an extension which could mess the setup. Stay tuned..
  • Create New...