Jump to content

flydev

Members
  • Posts

    1,366
  • Joined

  • Last visited

  • Days Won

    49

Everything posted by flydev

  1. @Sebi Really great additions ! There is a small issue, in site/api/Routes.php, the call require_once wire('config')->paths->RestApi . "RestApiHelper.php"; should be require_once wire('config')->paths->RestApi . "classes/RestApiHelper.php"; I really like the idea of applications key. I didn't spotted problems using it yesterday but still need to be tested deeply - I have three mobile native apps in which I will test it ? The Process Module is cool, I vote to stay with it.
  2. I am using this module in all my install now (it's a modified version with Basic Auth implemented) and all these additions look super ! Looking into it this afternoon, I will give my opinion. Thanks guys for the hard work ?
  3. Oh yeah excellent ! ? PS: The Github link lead to a 404 page due to a typo in the url.
  4. I use FSNotes on MacOS - and it's open-source ? : https://github.com/glushchenko/fsnotes
  5. Hey @elabx , I am tempted to say that yes it's related - (edit) it's related to your issue, not the locking one - Are you on MySQL 32bit or 64bit ? Quoting the official doc :
  6. Yes, in Pages2Pdf module settings : You can stay with PHP 7.3.x, and you can also try the same method to update it with the last mPDF version. If it didn't work, then use an older mPDF version like I did.
  7. Hi @iNoize inside the Pages2Pdf folder module, rename the folder mpdf to mpdf.old then paste the folder mpdf-master downloaded from Github inside the Pages2Pdf folder and rename it to mpdf; Refresh the module. That it. FYI: This workaround worked without any issue with mPDF 6.1.0 in 2018.
  8. Hi @KarlvonKarton thanks for reporting it. Can you tell me on which version of ProcessWire the module didn't work for you ?
  9. hi @iNoize Looking at the error and the corresponding line (26) pointing to an empty line, I bet that you have some unwanted char in the code caused by the copy/pasta from the forum. Try to open your file (contact.php) with another editor and clean weird chars. The plain HTML code should work as is. Please have a read to those post : If you still have an issue, ping me, I will check your templates.
  10. Hi @bernhard cool to see that you needed this module for your case. About your question, I quote myself : That's not the first time this question is asked, I will make the Process module installed automatically on the next version (which should be ready for the end of august).
  11. Sorry mate, still not downloaded a Windows image as I am now on a 4G router, no more fiber ? I have to retrieve it from a friend this afternoon or tomorrow, again stay tuned ?
  12. 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; });
  13. @kkalgidim read my post again ?
  14. 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);
  15. FYI , there is a really good language-pack for French : https://github.com/v-maillard/pw-lang-fr All work already done ?
  16. 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.
  17. @Wanze please force the module directory update ??
  18. You can give a try to Duplicator (do not forget to use the "dev" branch).
  19. @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.
  20. 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.
  21. You can use sort() on WireArray derived objects : $search_options = $templates->get("catalog_item")->fields->sort("label"); // or sort("-label")
  22. 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');
  23. 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 ? ?
  24. 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.
  25. 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/
×
×
  • Create New...