Guy Verville

Members
  • Content count

    131
  • Joined

  • Last visited

Community Reputation

67 Excellent

About Guy Verville

  • Rank
    Distinguished Member
  • Birthday 03/02/1959

Contact Methods

  • Website URL
    http://www.guyverville.com
  • Skype
    guyverville

Profile Information

  • Gender
    Male
  • Location
    Montreal, Canada

Recent Profile Visitors

2,177 profile views
  1. Guy Verville

    I was under the impression that findMany() was loading everything into memory. Maybe I'm wrong... I will do some tests, thanks.
  2. First of all, I'm not an expert on PHP. I recently read about generators and I understand their usefulness in avoiding loading a set of objects into an array to the point of saturating the memory. The $pages->find() call is known to be greedy (and slow) when it comes to processing large amounts of pages, because it loads all objects into memory. Is there a way to use a generator to avoid this problem? Is there a workaround? I know that $pages->findMany() exists, but it is also called greedy. See https://secure.php.net/manual/en/language.generators.php Translated with www.DeepL.com/Translator
  3. Hi, I tried your module but I got this when trying to access it. I am using PW 3.0.99
  4. Guy Verville

    Thank you very much for this nice addition! I will give it to my programmer (he had created his own solution inspired by your module and tightly integrated wit the existing code, but your config approach is more convenient and will certainly help a lot of people here). PS: I have installed in my modest and personal website and works like a charm. http://www.guyverville.com/sitemap.xml
  5. Guy Verville

    Hi Mike, Thank you for your excellent module. A wish : we have a big website where product pages are stored under a parent (a series => parent: series-carpet, children: sku-carpet, this is handy for our client to see the SKUs associated to a collection). These children are not hidden for search purpose, but are hidden from the navigation and, hence, from search engines. Your module generates for that site a 10000 sitemap list because the children are included. We can't go from series to series to disallow the sitemap generation for the children. In other words. Your module allows us to include/exclude sitemap generation for actual pages. It would be very convenient to disallow/allow a sitemap for a whole template from the template settings.
  6. Guy Verville

    I found the culprit. I commented out the RewriteBase / line in my htaccess... # ----------------------------------------------------------------------------------------------- # 11. OPTIONAL: Set a rewrite base if rewrites aren't working properly on your server. # And if your site directory starts with a "~" you will most likely have to use this. # ----------------------------------------------------------------------------------------------- RewriteBase /
  7. Guy Verville

    Thank you Adrian, The problem resides on my prod site, hosted by Greengeeks. I have changed nothing there. Perhaps they? I use MAMP Pro on local and everything is fine.
  8. Guy Verville

    It is so mysterious. When I am logged, I notice that the session is not preserved. For example, if I click on a module settings, I'm just returned to the module page with this message : No module specified...
  9. Guy Verville

    Hello, I am not sure what you are talking about. I have done nothing special except trying to create a new page, and suddenly, this problem. I think the DB is corrupted some way.
  10. Guy Verville

    Hi BiyPoet, this is the same problem as I can't see the Page tree. This happens when I log into the site... The official call is then http://www.guyverville.com/pw/page/?login=1&id=1 http://www.guyverville.com/pw/page/list/?id=1&render=JSON&start=0&lang=0&open=undefined&mode=actions for which I receive: Failed to load resource: the server responded with a status of 404 (Not Found) Here what I receive in the console No Ajax call seems to be allowed, on every page. For example, I cannot see the logs... or refresh the module page. Nothing works while, the same installation works in local...
  11. Guy Verville

    I have the same problem here, only on prod site. On my local machine, I have no problem. I deleted the cache folder entirely, made PW up to date, even with the DEV version, removed ProCache, but to no avail. I get this network error : Unknow problem, please try later. The console tells me this: ?id=1&render=JSON&start=0&lang=0&open=undefined&mode=actions 404 xhr JqueryCore.js?v=1507602825:2 9.1 KB 284 ms And I repeat, the local installation which is exactly the same has not this problem.
  12. Guy Verville

    Ok, got it. $french = $this->languages->get("francais"); $page->of(false); // page->setLanguageValue($french, 'title', $columns['Titre']); $page->setName($columns['Chemin'], $french); $page->set("status$french", 1);
  13. I have create a module base on Cramer's Import Pages From CSV in order to be able to import bilingual data. I based my code with the help of this page. While the title, the body (page_content) field are saved, I cannot save the french path (this is an import of previous blog entries from another CMS. I must keep the URL. The english URL is saved). $p->of(false); if($columns['Titre'] != "") { $french = $this->languages->get("francais"); $p->of(false); // $p->title->setLanguageValue($french, $columns['Titre']); $p->page_content->setLanguageValue($french, $columns['Corps']); $p->name->setLanguageValue($french, $columns['Chemin']); $p->status->setLanguageValue($french, 1); } I get this error
  14. Guy Verville

    My mistake... a simple typo...
  15. I am trying to implement a Repeater Matrix which contains a Page field (there are four fields, an image field, one text field and two page fields). The example given in the readme.txt is self-explanatory. However, this seems not to work with a page field. Say my page field is called "attached_ceramic_skus": <?php foreach($page->test_matrix as $item) { echo " <h3>$item->headline</h3> <=works <img... $item->image->url </> <= works foreach ($item->attached_ceramic_skus as $skus)... <= throws an error "; } } } When I debug this line, I see my image and text fields in the $item array, but not the page fields. But these fields are there and working when I enter data. I have understood how they are kept in the database. What is the method/hook to read this type of field?