Jump to content

mel47

Members
  • Posts

    330
  • Joined

  • Last visited

Everything posted by mel47

  1. Hi I have frequently error : "initMap is not a function" But the map is generally displaying correctly. Sometimes I have to refresh the page to get it. I have this in <head>: <script async defer src="https://maps.googleapis.com/maps/api/js?key=MYKEY&callback=initMap" type="text/javascript"></script> Chrome inspector: js?key=AIzaSyAXQ3WeU…callback=initMap:96 Uncaught Kb {message: "initMap is not a function", name: "InvalidValueError", stack: "Error↵ at new Kb (https://maps.googleapis.com/m…QnQ_ThTMb8XNFMZaOHo23Ya04&callback=initMap:146:49"} message:"initMap is not a function" name:"InvalidValueError" stack: "Error↵ at new Kb (https://maps.googleapis.com/maps/api/js?key=MYKEY&callback=initMap:42:72)↵ at Object._.Lb (https://maps.googleapis.com/maps/api/js?key=MYKEY&callback=initMap:42:182)↵ at ih (https://maps.googleapis.com/maps/api/js?key=MYKEY&callback=initMap:96:104)↵ at https://maps.googleapis.com/maps/api/js?key=MYKEY&callback=initMap:146:34↵ at Object.google.maps.Load (https://maps.googleapis.com/maps/api/js?key=MYKEY4&callback=initMap:21:5)↵ at https://maps.googleapis.com/maps/api/js?key=MYKEY&callback=initMap:145:20↵ at https://maps.googleapis.com/maps/api/js?key=MYKEY&callback=initMap:146:49" __proto__ :Error Thanks
  2. Hello, Found a solution via css, but I don't know how to apply to it since this iframe have no id neither class. (I have others iframe which I doesn't want to center). So how I can apply an id or class to the video iframe? Thanks
  3. Hi How do I center the video? If it's embed in <p>link<p>, it's display. But if we do <p style="text-align:center;">link</p>, the video doesn't display. I just have 2 formatters, this one and Hanna. Thanks
  4. Hello, Got a simple need but couldn't find solution. I just want to check if a multiple checkbox have any value checked. For sure this doesn't work because it's an array, but what it will be instead? if ($page->date_sco == "1") // this but for multiple Thanks
  5. Solved. Changes on security settings by hoster.
  6. Hi, Need help. Since today, I got error 403 on some pages, but not everyone. I don't have error or exception in the log. How come I could find why some page and not others one? I upgraded to 3.0.95 yesterday, but just in case, I reverted to 3.0.94. Anyway, it didn't change anything. Thanks Mel
  7. Hi @Eunico Cornelius I use this way in my template: strftime('%A %e %b', $page->date->getUnformatted("date")) http://php.net/manual/en/function.strftime.php
  8. Hi I want to exclude images of a certain width. I wrote a function, but it created an array instead of PageImages. How come I could ameliorate this? function resolution ($largeur, $hauteur, Pageimages $images) { $imageLarge=[]; foreach ($images as $image) { if ($image->width >= $largeur) { $imageLarge[]=$image->size($largeur,$hauteur); } } return $imageLarge; } Thanks Mel
  9. Hi I'm quite new to SVG. But there is so many ways to use them, that I'm little confuse and I don't know if I want to do too much things... I need to do some buttons (4 differents). Ideally, I want to let the possibility to back-end's users to change the image (to change the color) if needed. My questioning is : Backend image or hard-coded image? as image or background-image Text within image or using $page->title to write text on top of image Multi-language buttons How to manage hover color if the image is uploaded in backend (since the color change depending on the fill color)? I want to avoid too much duplications but be flexible if possible. I can also decrease my expectations... I found out yesterday how to add them inline via a backend image, but I'm not sure if it's the best way. Does it adding a lot of size to html page? I don't expect anyone to write code for me, but I'm curious to see how experienced people are managing their design. Thanks!
  10. Hello Suggestion for a new one if anyone thinks it would be useful : change values of a checkbox. For now, unless I'm wrong, only text fields could be setORreplace. Thanks!!
  11. Will be willing to test anytime!! I have tons of pages with repeaters to export in CSV...
  12. Nothing special. Just a concatenate from values like this: $page->map_lieu->address = "{$page->no_civique} {$page->rue}, {$page->ville}, {$page->codepostal} {$page->pays}"; Data were entered from FormBuilder, with fields similar to yours. I'm now at ~150 adresses collected and I just have a couple which didn't geolocalize (generally a typo). Status varied to "rooftop to geometric center". My only concerns is if you get a "Zero results" status, on front-end, the square map appears but with nothing. I'm planning to display the map with a "if status>=1", just to be sure.
  13. Hi! Look repeater. It's already installed in core. Good luck!
  14. Too late for me since I did that in my /ready.php. But would certainly use it in another project! ;-)
  15. ah, yeah, could move the console but not the output. Too late, should go to sleep I guess... Thanks for ->each, didn't know. ;-)
  16. Hi @adrian Just wondering if it's normal that even in full screen mode, the console output is so small? I can't resize also. Thanks Firefox58, Ubuntu 16.04, Tracy4.9.13, PW 3.0.91
  17. Hi, I'm trying to display the title of a page on the map but I can get it. Ideally I want to display both $page->lieu->title and page->map_lieu->adress. I couldn't find the way to write it. The only one working is 'lieu' but it display only id page. Can I use a variable in the array? 'markerTitleField' => 'lieu', // $page->lieu->title ?? Thanks Mel
  18. @adrian It's not that it didn't work, in fact we use it temporarily until I find a more complete solution. The problem is the shifting cells because, I guess, it didn't calculate how many repeaters have to be inserted as rows. I found this, but I suppose it's too old because it didn't do anything (or I didn't understand what it was supposed to do). I try to do it on my custom export, but I'm really bad with arrays and loops...
  19. Thanks. To be honest, I was completely exhausted to have fighted all weekend with custom CSV export, due to repeaters. This is why I was looking for something else. I will check this. But having the possibility to choose fields to export via a form in admin would be the Graal... ;-) Melanie
  20. Hi, I request an advice from experimented users! It's my first time for developing for someone else, so I have to take in account her needs and capabilities. She used to work with a CSV file to sort/copy data mainly because the old website was strangely constructed, with only one table in database and I suppose it was easy to create a CSV file. But now, with the new PW site, I used many templates with many repeaters etc and I don't know how to export all these data in CSV file. Using existing modules for export CSV don't work, since I have to append different pages together. How you manage to export data? She needs things like export all emails or phone number to her documents, she also sorted and others basic queries like this etc... Do you use exclusively admin interface to display data to user? But how export? Which format else than CSV could be more convenient for end-user in a "normal" desktop (good chance to be Office suite)? Looking forward for ideas! ;-) Thanks Melanie
  21. Hi, I normally don't express myself on those kind of discussions, but as a newcomer, and a also as non-professionnal developper, I want to emphases about simplicity of PW. I really liked the fact I was able to construct something even with my basic knowledge of PHP, and the system could sustain more complicated things, with my knowledge growing. IMHO, it should stay like this, open to everyone. In the previous CMS I used, I started like this, simple and understandable, but with years become so focused to developers than it was impossible to follow developments if you don't used it on day-to-day basis (maybe because me and other people like me didn't feel included and never participated to roadmaps discussion!!). I understand those having different needs than me, but I don't know if it's possible to find a way to activate/install more advanced features without impacting a simple core. I agree with latest posters, small issues should be fixed. Furthermore, I still wondering why really small useful things are not included in the core (and already existent). Just 2 examples: I put on forum my wish to have a button to save+add new field (as already existing in pages). @Robin S created this module in couple of hours. Second example : PW upgrade : who don't use that? Why it's not included in core? There is many small things like this. Thanks everyone for your work AND your answers to my naïve questions. Mel
  22. Hi, It's drive me crazy, I'm turning in round since days. What means this error? How come the page have no parent when first created (either by admin or form Builder)? It probably come from my hooks, but I don't where. I put my file but it's messy, I move things around too much often. Template : activite Template : organisme Activity is organized by 1 organisme (via pageRef inputfield) and is located in 1 organisme (pageRef InputField). Submission could be done either by FormBuilder or admin. In case of forms, I need a specific number to be created before email is sent to submitter. This number contains information concerning location. So I think, the problem is that location is not save before the number is created. But I'm not so sure... However if someone could just explain what means the error, maybe I could refine where I should search for the error. Thanks ready.php
  23. Hi Does it exist a way to debug why my page get locked after saving? Could be my hooks or field dependencies but not sure? Tracy? Something else? Thanks
  24. Hi, I'm still fighting with this issue. Does it exist a hook that run on each pagesave (saveReady) EXCEPT on the creation of the page? Thanks
×
×
  • Create New...