Jump to content

Mike-it

Members
  • Posts

    58
  • Joined

  • Last visited

Everything posted by Mike-it

  1. I’m not sure but I think that a field in a page must live first of all in the db, so if there isn’t a link in a table that joins the field value and the page, that field doesn’t exists for that page… I think you’re right: You should build your module in a way that it adds the field into the fieldgroup associated to the template on installing, and removing it on module unsintall. If you need that field isn’t visible, set it as hidden and the reveal it by API/hook
  2. Hi fruid, I'm not the most indicated to help, but in the meanwhile some other much more skilled then me, I try to give mi 50c: Maybe in your custom field creation foreach, is missing something like: $field->attr('checked', empty($data[$menuName]) ? '' : 'checked'); And a guess: Surely it's a typo error but before calling the InputfieldCheckboxes you have a commented note for an ASMSelect. Maybe there are other copy/paste mistakes? P.S. Dumping the checkboxes values, are they null/0/empty?
  3. OHHH, SORRY! I've replyed from my co-worker account: I'm Cybermano. --- Hi @Ivan Gretsky, as promised I made a PR on GitHub: hope it's ok. Basically I added a new InputfieldCheckbox in the InputfieldLeafletMapMarker.module fields configuration. Then I setted it in the constructor and also assigned to a variable into the ___render(): if the checkbox is checked, this variable will inoculate an html class ("scrollwheel-disabled") into the div.InputfieldLeafletMapMarkerMap. At the end, into the InputfieldLeafletMapMarker.js, if the div has this class assigned, map.scrollWheelZoom.disable() will do the work. Sorry, I didn't found a cleaner way 🤫: hope this could be helpful or of inspiration.🙂 I attach the two file here, too. InputfieldLeafletMapMarker.js InputfieldLeafletMapMarker.module
  4. I have already tried that. Made no difference. But, meanwhile I think I have found the solution. Adding to the mysqld config skip-log-bin transaction_write_set_extraction=OFF the performance is back to normal levels. It disables binary logging; since this is a standalone (non-replicated) server, this should be harmless (I think).
  5. Since I have recreated the databases from a dump in a clean installation, the indexes should have been rebuilt anyway, right? Moreover, importing the dump is now itself an awfully slow operation. My question is: is it possible that the out-of-the-box difference between MySQL and MariaDB is so large, to the point of making it worthwhile to migrate? Or is it just a symptom of some configuration problem with MySQL?
  6. For years I have used MySQL (on Ubuntu) with ProcessWire. Lately, the database has become incredibly slow. Everything: ProcessWire, dumping & restoring databases, etc. I believe this started happening when I have upgraded from Ubuntu 18 LTS to Ubuntu 20 LTS, which also upgrades MySQL to version 8 (from 5.x). I have tried to remove and purge MySQL and then reinstall it from scratch, just in case it depended from some old setting, but nothing changed. Still horribly slow. The surprise was when I tried replacing MySQL (8) with MariaDB (10.3) – since PW supports both – and then I restored the ProcessWire databases. Result: operations are more or less twenty times faster. Now, I understand that MariaDB is generally considered a bit faster than MySQL, but twenty times seems a bit excessive. Anyone has any idea on what could be happening here? Thanks
  7. Yes i've installed only WireMailSmtp, but i assume that native Php mail had nothing to do with it. I used FB example because i thought that if other wiremail moudules were used they should be visible in that screen. Gmail accounts were used only as receivers, while a standard SMTP account was used for sending. I'll do more testing and i'll verify if it sends correctly using FB (until yesterday it worked perfectly), i'll try also on other website. Thanks!
  8. Thanks for the quick response @adrian ! I will try again because the first test i sent to gmail and i got the emails but with the warning: "Gmail could not verify that the message was actually sent by domain-name.it (and not by a spammer)." And should not happen with WireMailSMTP... I attached the configuration of my actual sending method (formbuilder config).
  9. @adrian Usefull module! I have a question and a suggestion regarding the Email Batcher. On my site i use the Wire Mail SMTP module, tipically with a pre-configured account such as noreply@customerdomain.com to send email for collected forms ecc. ecc. Is it possibile to tell Email Batcher to use WireMailSMTP? For future development wouldn't it be nice to have a configuration screen for Email sending method? Thanks in advance
  10. It looks great! Wanted to test but got: "This module does not indicate compatibility with this version of ProcessWire." Is it safe to use it anyway? I think @adrian suggestion is correct to add PW 3.x compatibility ?
  11. Sorry solved... I'm little embarrassed, we have set the field option_type as single page ? not as a Multiple Pages PageArray now it works...
  12. I got this notice: *Notice*: Trying to get property 'title' of non-object...
  13. @adrian Thanks, i successfully recreated your example, using Page Reference and it works perfect in a multilanguage site (also used the module you mentioned https://processwire.com/modules/process-page-field-select-creator/) But suppose to have a multiple selection for "License type" so any image should dsplay all available license assigned This works with a single selection echo $image->option_type->title; Don't understand why it doesn't work with a foreach am i missing something? foreach($images as $image){ foreach($image->option_type as $opt){ echo $opt->title; } } Any help is appreciated ?
  14. Thanks @adrian i'll give a look, i ended up using this mentioned module https://github.com/Toutouwai/RepeaterImages
  15. Thanks @3fingers I have read the blog post, but i also thought it was a text omission (the option field), because of the example image, which i doubt is a photomontage ?
  16. That is actually my plan B: modifying the DOM after the fact, client-side. But I still would like to know if there is a way to do this in PW.
  17. I'm going crazy with this. Looking at the post https://processwire.com/blog/posts/pw-3.0.142/ The picture "says" that options are supported as a field, (see License block) but it does not work for me in any version i tryed in version: 1.48, 1.65, 1.70 If the field is not supported i would not show an image of that type. Am i wrong?
  18. I have a script that generates a bunch of inputfields and then outputs a form. I am trying to group visually these things. Basically, I'd like the output to have the fields grouped by some <div>s. I know I can use fieldsets for this, but in this case I can't, because the form is used by other functions (Padloper's) that assume it has a flat structure (no nested fields). So I need a way to inject some extra markup into a flat list of fields. I thought about using an After hook to InputField::render to inject the extra <div>s and </div>s that I need, but it does not work, because while I can indeed inject some markup this way, it is still wrapped by the code that usually wraps the element, i.e. <div class="InputField..."ecc>, so there is no way to output markup that act as a container of several fields. Finally, using the setMarkup method of the form allows me to control the rendering of the fields, but it seems that it works on all fields or nothing. I haven' been able to change it just for a single field of the form. Any idea or suggestion? Thanks
  19. @ryan: Reopening this old thread... Searching for a short word (three letters) via the search.php template (which uses the ~= operator) works as described in pw 3.0.148, but does not seem to work anymore in 3.0.165. Attached the images Pre and Post upgrade on a clean installation of the Minimal Site Profile from v 3.0.133 to v 3.0.165
  20. Solved! found this topic Thanks to @bernhard that did: Translate file /wire/modules/Inputfield/InputfieldDatetime/types/InputfieldDatetimeText.php Set path: /wire/modules/Jquery/JqueryUI/i18n/jquery.ui.datepicker-de.js
  21. With the new ProcessWire 3.0.165, also the Module has upgraded to Version 1.0.7 but now there are 2 abandoned translations, right for language file. Any idea on how to solve?
  22. @adrian works like a charm, thanks!
  23. I have an external php script (launched by cron) that uses ProcessWire (i.e. by including index.php, as explained here). I have the ProcessRedirectIds module installed, and when I run the script I get this warning: Notice: Undefined index: REQUEST_URI in /var/www/www.mysite.example/site/assets/cache/FileCompiler/site/modules/ProcessRedirectIds/ProcessRedirectIds.module on line 66 Obviously there is no REQUEST_URI in this case, but the module seems not aware of this possibility...
  24. Sorry guys I just bought the dev. license of Padloper 3.0, (confirmation email is attached) but the download link takes me to 404 page, also the link sent to the email confirmation doesn't work... I have not yet received a response from the seller antti ? . Does anybody is in direct contact with him and can warn him of the problem? Order Invoice # 3188 Date 2020-02-04 Thanks in advance
×
×
  • Create New...