Jump to content

flydev

Members
  • Posts

    1,360
  • Joined

  • Last visited

  • Days Won

    49

Everything posted by flydev

  1. 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.
  2. Hi @KarlvonKarton thanks for reporting it. Can you tell me on which version of ProcessWire the module didn't work for you ?
  3. 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.
  4. 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).
  5. 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 ?
  6. 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; });
  7. @kkalgidim read my post again ?
  8. 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);
  9. FYI , there is a really good language-pack for French : https://github.com/v-maillard/pw-lang-fr All work already done ?
  10. 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.
  11. @Wanze please force the module directory update ??
  12. You can give a try to Duplicator (do not forget to use the "dev" branch).
  13. @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.
  14. 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.
  15. You can use sort() on WireArray derived objects : $search_options = $templates->get("catalog_item")->fields->sort("label"); // or sort("-label")
  16. 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');
  17. 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 ? ?
  18. 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.
  19. 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/
  20. 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..
  21. ProcessWire currently might not be compatible with this version of MySQL as the RegEx engine is not the same between MySQL 5.x and MySQL 8.x. Could you paste the full call-stack ?
  22. Looking at the error you got, you could fix it by enabling zlib.output_compression in your php.ini. ps: to be clear, you have a server issue.
  23. Thanks @Robin S I see, anyway I just tested to call this function, it works fine on ProcessPageEdit but when I switch to, for example, on a ProcessModule (a config module page) the breadcrumbs isn't rendered : <!-- MAIN CONTENT --> <main id='main' class='pw-container uk-container uk-container-expand uk-margin uk-margin-large-bottom'> <div class='pw-content' id='content'> <div class="uk-breadcrumbs"> <?php if ($layout != 'sidenav' && $layout != 'modal') echo $modules->get('AdminThemeUikit')->renderBreadcrumbs(); // echo $adminTheme->renderBreadcrumbs(); ?> </div> [...] Result on ProcessPageEdit : Result on ProcessModule (Breadcrumbs's module config page) :
  24. More info on this threads : Welcome ?
×
×
  • Create New...