Jump to content

mel47

Members
  • Posts

    330
  • Joined

  • Last visited

Everything posted by mel47

  1. Thanks so much, problem solved.
  2. Hi, From 3.0.126 Just realized I also have the date in english in backend (in lister for example). And also in another website (in backend but not frontend). Not sure if it was like this before since I never really have a date column in lister. This website in on a PHP7.4 version. Thanks
  3. Hi, I updated recently to PW 3.0.233. My website is in french (default) and english. I realized all my dates became english on frontend. I didn't modify locale (fr_CA.UTF8) from languagesupport-module, neither anything from my template. Most used something like strftime('%A %d %b', $item->getUnformatted("date")). An important information is that my prod server is still on PHP 7.2, so it should not normally be deprecated. Does something change in PW? Or what do I should changed at this time? Thanks Mel
  4. Hi, I used this module since long time and it worked fine. But I wanted to change an address today and I got an REQUEST DENIED error. I didn't change anything to my API key. I just check, and Geocoding API and Maps JavaScript API are enable. I updated to 3.0.0 module also recently, so I don't know if it's related or not. Thanks
  5. Hi @thetuningspoon Thanks! I took 3.1.6 from GitHub, it doesn't seems to be push to PW modules repository. But anyway, it works perfectly now!
  6. Hi, In readme it said that it have an automatic cleanup (I do have Lazy cron installed). How I can verify if it works (or in fact why it doesn't)? The list is growing and it doesn't seems to be deleted since I installed the module 3 years ago! Thanks Mel
  7. Hi, I updated recently both PW version (to current dev 3.0.233) and module (from 3.1.2 to 3.1.5). I have a problem with interference within FormBuilder module. When I click to edit some PageFields, in my form, I get this message. Not for all fields though. And I don't have this issue in template, view and add new links works fine. Thanks. (I post here, since it seems related to this module, but I could transfer the message in FormBuilder forum if necessary).
  8. OMG, thanks so much. Apparently I skip this (closed) option.
  9. Hi, Just update to 3.0.226 this weekend and my content screw up. I'm unable to avoid div to get strip of code editor. I try "extended_valid_elements" : "div" but without success. How I can achieve to keep div in TinyMCE? Thanks!
  10. Oh, yeah, I was thinking in term of <picture> not PageImage. But it works now by changing as suggested. Thanks!
  11. Hi @nbcommunication I discovered the benefit of srcset tonight and it's easier with the module! Thanks. I have a question. How can we manage "art direction" with the module? I had this 2 image sources but I don't know how to implement using module's API : <picture> <source media="(max-width: 799px)" srcset="<?=page()->rootParent()->image_haut_mobile->url?>"> <source media="(min-width: 800px)" srcset="<?=page()->rootParent()->image_haut->url?>"> <img class="image" src="<?=page()->rootParent()->image_haut->url?>" alt=''> </picture> Thanks! Mel
  12. Hi I installed a new instance of PW (3.0.200) with default settings for database. So the database is : utf8mb4_0900_ai_ci However I use french language and when I use code button for TinyMCE I have things like &agrave; etc... But not for fields using CKeditor. Is it the new behavior, a bug or I have to change something somewhere? Thanks Mel
  13. Hi, I advanced a little bit but I'm still stuck... 🙃 I used templates to add this code, works fine! However, whatever I do, when I save the page, the class disappear from code. I tried to add those classes in "extra_css" in TinyMCE options, but didn't help. In CKeditor, it have an option to allow some classes to be not striped from code. Does is have this option for TinyMCE? Thanks Mel
  14. Hi, I know this subject has already been discussed, but I was wondering if TinyMCE will simplify things. I want to do a editable text by users in a 3-columns layout for a specific page, in the middle of some content. The content of the page is a simple body field with CKeditor/TinyMCeditor (not decided yet). Columns are managed by CSS, something like : <div class='columns'> <div class='column is-4'> <div>Text/image to edit</div> </div> <div class='column is-4'> <div>Text/image to edit</div> </div> </div> What is the best way to achieve this inside the editor? Or it's better to create own field for each column, so code will be in template? Thanks
  15. Hi I'm trying to create a markup of a list of options in 3 differents columns. I'm not sure how to do it. For now, I'm able to display each title: $field = wire('fields')->get($instru); $instruments = $field->type->getOptions($field); foreach ($instruments as $inst) { $out .="<li><h5 class='title is-5'>{$inst->title}</h5></li>"; } But I want something like this. Does it make sense? Or what other strategy I should aim? $field = wire('fields')->get($instru); $instruments = $field->type->getOptions($field); $firstCol = Options 1 to 5 // how to do? $secCol = Options 6 to 10 // how to do? $thirdCol = Options 11 to 15 // how to do? $array = [firstcol, seccol, thirdcol] foreach ($array as $col) { $out .="<div class="column">"; foreach ( ?? ) { $out .="<li>title</li>"; } } Thanks!
  16. Hi! I wondering if we transliterate any type of field. In fact, I want to transliterate titles from a fieldtypeOptions. I didn't work, however it's works well for a text field. Thanks!
  17. Thanks! I tried many versions, but apparently I missed those ones... ?
  18. Hi, Thanks. I put what I've done but it didn't work and I'm not sure it's the best way. function renderBio(PageArray $items, string $categorie) { $out = ''; foreach ($items as $item) { $photo = ${"$item->image_".$categorie}; //should be $item->image_director $bio = ${"$item->content_".$categorie}; //should be $item->content_director $out .="<div class='article columns is-multiline border-horizontal is-vcentered'> <h3>{$item->title}</h3> <div class='column is-3'> <img loading='lazy' src='{$photo->url}' alt='{$photo->description}'> </div> <div class='column is-9'>$bio</div> </div>"; } return $out; }
  19. Hi, Unfortunately I can find what is the problem. I don't think it's related to my templates, since it didn't work even in Tracy. In my previous project, the same code render correctly a menu. Same PHP version 7.2 (localhost) but different versions PW (3.0.206 vs 3.0.188). Mel
  20. Hi, For my new project, I'm trying to increase my optimization skills... So I have a template with fields Name(title) content_director photo_director content_prof photo_prof etc... I want to write a function to render a identical markup (renderBio(PageArray $items, string $category)), but for pages director or prof. However I tried many ways and I'm not sure how to do. I could do it with many IF but I would prefer an other solution. I tried to concatenate $item->content_ and $category but can't found the appropriate set of {}, "" or ''. If not I could use an array, but I'm not sure what to add in. Or maybe find fieldname ending with $category? What solution would you preconize? Thanks. I'm eager to see your solutions! Mel
  21. Hi, Just to say that I'm quite interested by an answer to be give to @Greg Lumley since I have the exact same problem. I used this module in previous website so I was thinking to know how to use it... Thanks (using latest 0.2.7 on PW 3.0.205)
  22. Sorry to come back again on the subject, but does someone have an idea why we can't see data if we are logged as admin? Before (unfortunately, don't remember which PW version it was), it was displaying correctly. I'm willing to modify anything : role, permission, module to get it working. I just want to avoid to give super-admin rights. Thanks Mel
  23. Thanks for answer. Honestly for now, as I said RockGrid perfectly fit my needs. Here the JS error (appearing only to non super-admin users): Uncaught SyntaxError: JSON.parse: unexpected keyword at line 1 column 1 of the JSON data onreadystatechange http://localhost/dev/site/modules/FieldtypeRockGrid/RockGridItem.js?t=1635649449:290 getAjaxData http://localhost/dev/site/modules/FieldtypeRockGrid/RockGridItem.js?t=1635649449:288 init http://localhost/dev/site/modules/FieldtypeRockGrid/RockGrid.js?t=1635649449:188 init http://localhost/dev/site/modules/FieldtypeRockGrid/RockGrid.js?t=1635649449:223 initGrid_suivi_org http://localhost/dev/admin/gestion24h/suivi/organismes/:290 <anonymous> http://localhost/dev/admin/gestion24h/suivi/organismes/:301 RockGridItem.js:290:31 onreadystatechange http://localhost/dev/site/modules/FieldtypeRockGrid/RockGridItem.js?t=1635649449:290 (Asynchrone : EventHandlerNonNull) getAjaxData http://localhost/dev/site/modules/FieldtypeRockGrid/RockGridItem.js?t=1635649449:288 init http://localhost/dev/site/modules/FieldtypeRockGrid/RockGrid.js?t=1635649449:188 init http://localhost/dev/site/modules/FieldtypeRockGrid/RockGrid.js?t=1635649449:223 initGrid_suivi_org http://localhost/dev/admin/gestion24h/suivi/organismes/:290 <anonyme> http://localhost/dev/admin/gestion24h/suivi/organismes/:301 Mel
  24. Hi @bernhard I have a question. I used RF1 and RockGrid. I saw both are deprecated. Since for now, it suits my needs coupled to a lack of time to rewrite my queries, I don't really want to convert to RF3. But I now do need to show data to admin users (and not just superadmin). Currently the table, in a custom admin page, just show "loading". Can I kindly ask how I can display data my users? Sub-question : if rockgrid is deprecated, what else I should use? Thanks Mel
  25. Hi, I have this working line to find a specific image. $banniere = $pages->get(1)->images->findTag('banniere')->getTag($user->language->name); But now, I want to add getRandom(). I tried different versions $pages->get(1)->images->findTag('banniere')->getTag($user->language->name)->getRandom() $pages->get(1)->images->getRandom()->findTag('banniere')->getTag($user->language->name) but always received this error : Method Pageimage::getRandom does not exist or is not callable in this context. Is it compatible? How I can do that? Thanks! Mel EDIT : solved by myself. Error I commonly do, mixing up get() and find()... Sorry for the disturbance. $banniere = $pages->get(1)->images->findTag('banniere')->findTag($user->language->name)->getRandom();
×
×
  • Create New...