Jump to content


  • Content Count

  • Joined

  • Last visited

Everything posted by mel47

  1. Thanks @gebeer, I tried your module and it works really well. I was wondering if someone have an idea of a php code to fallback from ImageReferenceField to ImageField. I need to keep my "normal" images field in case I need to upload new images (and anyway I have too much images already uploaded to use exclusively ImageReference). Thanks
  2. OMG, my dream come true! 😁😁😁I will use for sure multi form pages! And I will be able remove pages used for a simple yes/no! Thanks so so so much!
  3. Thanks everyone, but especially @LostKobrakai. This "owner" selector is wonderful! So for the sake of people searching on forum, it give this so simple selector: $CategUsed = $pages->find('categ.owner.template=activity'); Mel
  4. Hi, I have difficulty to find the good selector. Home ----Categories ------------categ -----Activities ----------activity (with a pageref to categ) I create a search form with multichoice to listing all categories ($categ = $pages->find("parent.id=1057, sort=title")). However, some categories are currently not used and I don't want them to be listed. How I can modify my selector the more efficient way? I was thinking of searching categories in all activity's pages and recreate the array. Or exclude pages category without references to them. Or something else simpler I don't know?? Thanks Mel
  5. mel47

    Map Marker Map

    Hi, I have a recurrent problem of an error " 'MarkupGoogleMap' was used before it was defined. ". In some browser, the map display correctly but in some (IE) it just doesn't work. I put the code in a JS validator, and I have the same error, but I don't know why and what I'm supposed to do, since I didn't play with this JS code. I also have " Expected 'mgmap1' at column 1, not column 37. " Thanks, Mel
  6. Hi, I'm wondering how unpublished (or hidden) pages could "disappear" from the menu, without having to remove it from the menu? The context : I have some pages in menu. My user need to unpublished a page not necessary for a temporary period. But it's not automatically removed from the menu. I now deleted from the menu, but I'm quite sure than she will want to re-published it, she will call me because it will not be present in the menu. (I gave her permissions on menu but if I could avoided to touch too much those settings, I will be happy... Anyway, in theory she shouldn't have to modify anything on that module on regular basis). Thanks Mel
  7. Hi I have a sudden problem for pdf creation. Do I just have to increased memory? I change recently PHP version to 7.1, I don't know if it's related. However, my developpement server is 7.2 and I don't have this error. Thanks Allowed memory size of 33554432 bytes exhausted (tried to allocate 176128 bytes) search► File: .../httpdocs/site/modules/WirePDF/WirePDF.module:76 76: require_once(\ProcessWire\wire('files')->compile(dirname(\ProcessWire\wire("config")->paths->root . 'site/modules/WirePDF/WirePDF.module') . '/mpdf/mpdf.php',array('includes'=>true,'namespace'=>true,'modules'=>false,'skipIfNamespace'=>false)));
  8. Solved. Had to return in PHP7.1 because zlib is "on" instead of "off" on my server when set to PHP7.2.
  9. Hi, New problem but I'm quite sure it was not there before, but I don't know since when. I upgrade to last version 1.1.1 but didn't help. I get this error. The grids (more than 1 with different queries) appear with "loading" but nothing happens. Error is from Chrome, but same one in Firefox. (index):2 Uncaught SyntaxError: Unexpected token W in JSON at position 1 at JSON.parse (<anonymous>) at XMLHttpRequest.xhr.onreadystatechange (RockGridItem.js?t=1550464515:271) Thanks
  10. Hello, Thanks for your module, it does exactly what I wanted without complication. However, have 1 question/suggestion. Since I will not be the one that will fill the documentation, I gave permissions to modify help-doc to my admin users. It works well, if they created the page from the tree hierarchy. However from admin menu, the "create doc" button and "edit" link will not appear. Looking to your code, only superuser will saw those. Could I override ride this without modifying directly in code? I guess adding a permission "admin-helper" could solve this? Thanks Mel PS For now I commented lines 91, 108, 127 in ProcessAdminHelp.module and solved my problem but I guess it's not the better way... 😉
  11. Hi I have a very basic interrogation about admin. I started to build my own module for users to manage the website (for example export or email sending), via a specific menu. Works well. But now, I wanted to add a config page (currently under home tree, using a settings template). This page contains fields for text, checkbox and images, and have to be edited by website users frequently. Searching around forum and different admin config modules, if I understand correctly, I can't save images, since they are not pages. Do I'm right? Do I should only use a link to harmonize the feeling and find everything under the same menu? How, you, experienced people, manage this kind of settings page? Thanks!
  12. mel47

    Map Marker Map

    I found a workaround, related to an other issue. I ended by moving the order of fields. BTW, no error in console. Thanks
  13. Thanks. But I tried to debug a lot in the last days, and tracked down the problem today, but I can't explain which kind of interference is involved. It seems to be related to fields' order in this specific template! Changing imagefield to last position (or at least after 2 pagesfield) solve the problem. Not ideal but working. Strangely, the problem was not on new pages, just those already created (months ago). I changed some fields in the template since then, but never touched to this imagefield. Furthermore, the same field is used in 2 others different templates, it doesn't show this behavior. I don't think yet it's related to modules (I used disabled all modules by Tracy), but didn't solve. However, I kind of solved my 2nd problem that seems to be related, moving also mapmarker field at the end of template, also solve the geocoding problem. Mel
  14. mel47

    Map Marker Map

    Hi I have a problem that I didn't have before (not sure when was "before" though...). However all last year' pages displayed a correct localization. If I typed an address, it will not localized until I check/uncheck the geocode true/false. However, saving the page doesn't retain the "ok rooftop" result, and return to "request denied". After a couple of saving pages, I eventually get lat/long saved but the status is still "request denied". Furthermore, I discovered I can't modify addresses on certain pages (those created by guest (form builder)). It may be related to my similar problem about image undeletable. Under 3.0.123, both local and production. Google API is enabled for billing. Anyway, address with a previous correct localization are displayed fine. Thanks!
  15. Hi I have a really strange problem. I have a images field on a certain template with a maxfile=1. Normally I could replace the image by a new one without problem. However, now, when I drag the new image, it seems to replace. However after saving the page, both images are there. And it's impossible to delete any of them. But the notification mentions the image is deleted! I discovered it happens only under a specific template, and on page created by "guest" (which are Form builder). Those created via admin act normally (meaning image replaced). Modification of other text fields in the template are correctly saving. On 3.0.123 (but since a couple a dev version), both on local or production server. Permissions is 755 for folder and 644 for file. Deactivated all hooks in ready.php to be sure. If someone could point me some directions to search... Thanks Mel
  16. Hi I discovered ag-grid documentation (since I solved all my Rockfinder problems, thanks!). I have really general questions. How I should decide what to put in BeforeInit vs AfterInit? For example, why the visible/hidden column are in AfterInit? I want to have a modified version of YesNo plugin. How I can do that? For now, I rename with a slightly different name and add it in /assets/Rockgrid folder. Is it the good way to do it (it works BTW)? Where I should put CSS file? I added in /assets/Rockgrid/style.css and link into my PHP file. However, for some reasons, I'm not able to use row classes. The class is well added in html but CSS classes's are overridden. However If I used instead inline CSS directly in the JS file, the row is correctly styled. I have many Rockgrid fields, sharing some columns. How I can define some common column headers (definition, style, etc..) instead of re-write on each field.js file? Thanks! Mel
  17. Wow, thanks so much @PWaddict! I saw this post by chance this morning. Those hour differences on my server always annoyed me but I never searched to solve them. And you just give the perfect solution! 🙂 Mel
  18. Thanks. Effectively working, I messed up titles of fields. Feel a little bit noob... 🤫
  19. Thanks! Was able to successfully display children/parent pages. Looks like this : $contact = new RockFinder('template=contact', ['title', 'parent_id']); $org = new RockFinder('template=organisme', ['title']); $contact->join($org, 'contact', ['id' => 'parent_id']); return $contact; However, I can't add any other fields like I normally do: $contact = new RockFinder('template=contact, include=all', ['title', 'parent_id', 'nom', 'prenom']); I guess it have to be done after the join or have to be written in a different way? I couldn't find any example on your documentation similar to that. Thanks again! Mel
  20. Hi, I use a slightly modified version of http://modules.processwire.com/modules/textformatter-glossary/ to achieve this task. I'm not sure if it's exactly the same mechanism, though. I will eventually test yours and see if it suits my needs. Mel
  21. ah ok, it's strange. I forgot to mention, but it was already set as required. But I get full length on frontend. Anyway, it's not the most important thing...
  22. Hello, Just a quick question/confirmation. I set a maximum length for textarea to 200 characters. However, I was expecting some kind of warning to user before saving (else the red color of the counter). But it seems not, and the page is saved without problem. Is it the expected behavior? Thanks Mel
  23. Hi, Still digging in the module. I have 2 questions: Does it have a limit of columns to be added? For now, I have 22 columns + 17 columns added with ->addField. It's probably too much: it works but it's really, really slow (minutes) and freeze everything else. Strangely I just remove a couple of fields (~5-10) and it's appear rather quickly. All those fields belongs to 1 single template (so just left joins). I have ~200 rows. In fieldtypes supported there is a file named "pagestable". I guess it's not "Profields: Page table"? Anyway it doesn't work with ->addField, it just print id. I search for another syntax, but I couldn't find it. Thanks again Mel
  24. @bernhard Thanks!!! I should have written before... 😉 Anyway, I can continue my exploration!
  25. Hi. I'm searching since a couple of days why I get this behavior. I follow your example for pages but it never display with separator (in my picture id=1284 or 1286 or 1290). I have no idea why, maybe an expert eye could spot something. $finder = new \ProcessWire\RockFinder('template=activite', ['title']); //really simple example $field =$finder->addField('discipline', ['title']); $field->separator = "|"; return $finder->getSQL(); SELECT `rockfinder`.* FROM /* original pw query */ (SELECT pages.id FROM `pages` WHERE (pages.templates_id=58) AND (pages.status<1024) GROUP BY pages.id ) as `pwfinder` /* rockfinder */ LEFT JOIN ( SELECT `pages`.`id` AS `id`, `title`.`title` AS `title`, `discipline`.`discipline` AS `discipline`, `discipline`.`title` AS `discipline:title` FROM `pages` /* --- join title --- */ LEFT JOIN (SELECT `pages_id` AS `pageid`, `title`.`data` AS `title` FROM `field_title` AS `title`) AS `title` ON `title`.`pageid` = `pages`.`id` /* --- end title --- */ /* --- join discipline --- */ LEFT JOIN (SELECT `discipline`.`pages_id` AS `pageid`, `discipline`.`data` AS `discipline`, GROUP_CONCAT(`title`.`data` ORDER BY `discipline`.`sort` SEPARATOR ',') AS `title` FROM `field_discipline` AS `discipline` LEFT JOIN `field_title` AS `title` ON `title`.`pages_id` = `discipline`.`data` GROUP BY `discipline`.`pages_id`, `discipline`.`data`) AS `discipline` ON `discipline`.`pageid` = `pages`.`id` /* --- end discipline --- */ ) AS `rockfinder` ON `pwfinder`.`id` = `rockfinder`.`id` /* end rockfinder */ Thanks!!
  • Create New...