Jump to content


  • Posts

  • Joined

  • Last visited

About Pretobrazza

  • Birthday 07/07/1961

Profile Information

  • Gender
  • Location
    Knokke-Heist, Belgium

Recent Profile Visitors

1,825 profile views

Pretobrazza's Achievements

Jr. Member

Jr. Member (3/6)




Community Answers

  1. @Macrura - You really deserve a gold medal a) for the speed you responded and b) for how the module sailed through all the articles, pulling in all the images smoothly. On (3) however, I wasn't successful as somehow the script didn't work in Tracy Debugger's console but not to worry ... I went to Batch Child editor where I 'Unpublished' the articles in bulk and published them again. In the process your module pulled in all the images. ;) Once again, Thank you very much!
  2. Hi, I'm importing a fairly large Joomla site that exist since 2009. The module is a lifesaver BUT I encounter 2 problems where nothing happens: When the extension ends in .JPG (all caps) the image gets skipped Even if one image width is expressed in e.g. 30%, the whole import process gets aborted I'd be VERY happy to find out where I can adjust the script so that the module would run flawlessly. On a second breath, can someone point me to a script where all children of a parent get opened and saved one by one so that all the images get imported automatically with this module? Thanks in advance!
  3. Hi all, I have been searching a bit everywhere but except for UIkitty (for Drupal) I can find very little reference to CKeditor and UIkit combined. Unless anyone can convince me otherwise, I would love to have my CKeditor to run with UIkit classes. Is anyone doing it? What files must I add, where do I find them and what must I change where? Not only for me but for anyone wanting to use UIkit in the front- and backend, I think it would be wonderfull to be able do so ... Many thanks in advance!
  4. For me the problem with the map either or not appearing on the front-end lied with the " Front-End Page Editor " module. When uninstalling that module the problem dissapears as well.
  5. This morning I tried again and only found 1 error in JqueryCore.js:2:40351 ( /wire/modules/Jquery/JqueryCore): Use of getPreventDefault() isn't supported anymore. Instead use: defaultPrevented. -> I did so and the error went away. On the other hand, when I try and drop a CSV in the the ImportPagesCSV upload box, it doesn't accept it, so I have to press the upload button. For normal fields an even pictures the the ImportPagesCSV module is working fine but not for the Leaflet submaps. Same problem with BCE. My version of PW is 3.0.61 - Leaflet V 1.03 - php 7.1 now
  6. Hello @Robin S, Thank you for your reply! Since yesterday I tried those combinations but to no avail. Just now I turned the php7 to 5.6 but there too it doesn't work for me. In one of the existing pages I had already saved an address but after uploading 2 records with an address (with $page->$name->address = $value , that one too disappeared. Could it be pw 3.0.61 which causes an issue? Tonight I tried with BCE too but there too .. no success
  7. Hello, Now I have come to the stage whereby I want to import hundreds of pages via CSV with addresses. I tried to find a solution in this forum via Google search and tried all the possibilities that were suggested for Batch child editor as well as in the code of the ImportPagesCSV module being used/suggested for Ryans's MapMaker but both of them refuse to work and import the adresses, lat lng zoom in one way on another into the Leaflet mapfield. Now I have 2 questions: 1. Is anyone succeeding at the moment to upload CSV's to the Leaflet Map addressfield? How? My version of PW is 3.0.61 - Leaflet V 1.03 - php 7.0. 2. If so, here's my second question (to @gebeer, I think?): Say, I only upload the address, will it geocode automatically? If not can it be done or will I be to geocode the addresses externally beforehand before I upload the CSV's? Kind regards, Bernard
  8. Hi, I'm using PW 3.0.61 with PHP7 and yesterday I downloaded this module as I urgently need to import coordinates to link those pages to my map in the frontend. As I'm using Leaflet Map Marker in the admin, the subfields in the 'map' table in the database are: map.data map.lat map.lng map.zoom map.status e.g. Albatrosstraat, Knokke-Heist, BE 51.34085 3.242333 18 -100 As I have to import 1000's of pages, I have no option but to work by batch georefferring and csv imports. I tried everything to make the import of the subfields work but to no avail. Could it be that the module is not compatible with PW 3.0.61 or that Leaflet Map Marker has other settings, or am I missing something somewhere? I tried to pair CSV column number and Processwire field names as in: 1:title 2:map.data (tried map.address too) 3:map.lat 4.map:lng etc.
  9. Hello, I managed to render a leaflet map with wms in a barebone template in processwire. Seen that it works, I added a new provider in leaflet-providers.js and I also updated providers.inc and providers.json files. In leaflet-providers.js I added: ....... }, <--- didnt forget the comma ;) GRB: { url: 'https://geoservices.informatievlaanderen.be/raadpleegdiensten/GRB/wms?', options: { layers: 'GRB_BSK', format: 'image/png', transparent: true, attribution: 'Realized on Processwire' } } As a proof of concept first, in order to render the map I must replace the L.tileLayer by L.tileLayer.wms somewhere in the script so that I can obtain a: whatever = L.tileLayer.wms("https://geoservices.informatievlaanderen.be/raadpleegdiensten/GRB/wms?", { layers: 'GRB_BSK', format: 'image/png', transparent: true, attribution: "Realised on Processwire" }).addTo(map); After a hint from @gebeerI tried to do so in MarkupLeafletMap.js line 47. but I don't think I'm doing it right. Is there a particular syntax I should use?
  10. Hello everyone, Hello @gebeer After having tested lots of modal rendering scripts, for 3 solid days, I ended up with Featherlight, a very lightweight jQuery lightbox plugin, which seems to harness many possibilities. From a 'Title' field in a Leaflet map popup, I can now render child pages with a map in modal windows overlaying each other. However now I need every map to get a different ID instead of 'mleafletmap1' otherwise they won't render. I tried to put $page->name but as soon as there are hyphens, it doesn't work. Any idea of which dynamically generated variable I could use as an ID for the maps in the base-template? In the popover the title has to be clicked twice to fire a modal page. How (where) can I change this behavior? Even though everything is working fine inside the map, at the bottom of the modal windows with a map I find this: $(function() { var percelen = new jsMarkupLeafletMap(); percelen.setOption('zoom', 14); percelen.setOption('scrollWheelZoom', 1); percelen.init('percelen', 51.341845581086325, 3.268561363220215, 'OpenStreetMap.Mapnik'); var default_marker_icon = L.AwesomeMarkers.icon({ icon: 'home', iconColor: 'white', prefix: 'fa', markerColor: 'green' }); }); (in a map with markers this gets much longer) Is it an error that this appears under each modal map or is it something I will have to look into on the side of Featherlight? In any case, at least I'm moving on now and as soon as the problems above can be solved (especially the first 2), I will start playing around with basemaps and wms and see what happens ...
  11. @rick To call the map in the test page map I use: <?php $options = array('markerIcon' => 'flag', 'markerColour' => 'purple', 'markerTitleField' => 'title',); echo $map->render($page, 'map'); ?> to zoom into my question in the options I find among many others:: `markerLinkField` | Page field to use for the marker link, or blank to not link (type: string; default: url) `markerTitleField` | Page field to use for the marker title, or blank not to use a marker title (type: string; default: title) I'm missing something like markerTitleLinkField whereby I could call a dialog box, am I right?
  12. Thank you for your quick reply, but in the ### Options of the leaflet-PW module, can I control the behavior of the `markerTitleField` (or alternatively markerLinkField) which means that the dialog box would be triggered to load the content of a page. What do I put in the the `markerTitleField` (or alternatively 'markerLinkField') option to do so? Is it possible? Does the corresponding .js or other file in the module provide for it?
  13. Hello @gebeer Unless I'm missing something important about the version of jquery on my testing page I was using //ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js in the template file. Now I changed it to //ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js and everything is fine with the map. The testing page takes a few seconds to load as There are 600+ pw children streets which will eventually be shown in the end (look at the source). Next step for me to endeavor into : I saw in the options of the leaflet-PW module, that one can control the behavior of the `markerTitleField` (or alternatively markerLinkField) which means that a sliding pane or modal window would be triggered to load the content of a page. What do I put in there? Is it possible? I'm looking around for a versatile Leaflet script (there are many it seems) to put content in a slider pane OR modal window, so that when someone clicks in the title link in a popup or on a marker, instead of opening a new page, in the browser, a responsive page gets called up in a sliding pane or modal window inside the map with the possibility to have extra controls around them (eg. close, fullscreen, 'like', post a comment, mailto, etc etc). .... but first finding the versatile sliding window (and/or modal) script to load any type of content into is already a challenge for me as I want to stick to the latest version of PW as well as of leaflet (1.0.3) ... Does anyone a suggestion? Even though there is streetview in this example, I'm convinced that with the Leaflet Map module PW will render a page like this on it's socks, not so? (The next step after this will be even more of a challenge.to broaden the scope of this module even further)
  14. @gebeer I replaced/added the content of these files in /pw/site/modules/FieldtypeLeafletMapMarker/assets/leaflet-markercluster MarkerCluster.Default.css add oldie styles 3 years ago MarkerCluster.css Corrected spiderfy leg anim and leg opacity option 2 years ago leaflet.markercluster-src.js Tag v1.0.4 29 days ago leaflet.markercluster.js Tag v1.0.4 29 days ago EDIT: IT IS WORKING !! Thank you very much @gebeer setup: PW 3.0.58 © 2017 Leaflet 1.0.3 with modified files as above is FieldtypeLeafletMapMarker/assets/leaflet-markercluster
  15. @gebeer I tested it on the V3 version and changed the content of the files as suggested. The map in the screen stays blank and the consoles says: ==> jquery.min.js:2:31515 jQuery.Deferred exception: t is undefined o.Util.trim@https://unpkg.com/leaflet@1.0.3/dist/leaflet.js:5:1149 o.Util.splitWords@https://unpkg.com/leaflet@1.0.3/dist/leaflet.js:5:1230 o.Evented<.on@https://unpkg.com/leaflet@1.0.3/dist/leaflet.js:5:3878 L.MarkerClusterGroup<.initialize@http://durvenleven.be/pw/site/modules/FieldtypeLeafletMapMarker/assets/leaflet-markercluster/leaflet.markercluster.js:6:515 o.Class.extend/e@https://unpkg.com/leaflet@1.0.3/dist/leaflet.js:5:2729 jsMarkupLeafletMap@http://durvenleven.be/pw/site/modules/FieldtypeLeafletMapMarker/MarkupLeafletMap.js:54:19 @http://durvenleven.be/pw/straatnamen/abraham-hansplein/:36:20 g/</j@https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js:2:29946 g/</k<@https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js:2:30262 undefined ==> TypeError: t is undefined[Meer info] leaflet.js:5:1149 o.Util.trim https://unpkg.com/leaflet@1.0.3/dist/leaflet.js:5:1149 o.Util.splitWords https://unpkg.com/leaflet@1.0.3/dist/leaflet.js:5:1230 o.Evented<.on https://unpkg.com/leaflet@1.0.3/dist/leaflet.js:5:3878 L.MarkerClusterGroup<.initialize http://durvenleven.be/pw/site/modules/FieldtypeLeafletMapMarker/assets/leaflet-markercluster/leaflet.markercluster.js:6:515 o.Class.extend/e https://unpkg.com/leaflet@1.0.3/dist/leaflet.js:5:2729 jsMarkupLeafletMap http://durvenleven.be/pw/site/modules/FieldtypeLeafletMapMarker/MarkupLeafletMap.js:54:19 <anoniem> http://durvenleven.be/pw/straatnamen/abraham-hansplein/:36:20 g/</j https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js:2:29946 g/</k< https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js:2:30262 In InputfieldLeafletMapMarker.module - Lines 61 and 64 I also bumbed the version to 1.0.3 for the admin side and there the 'map' is working fine. (rendering-georeferring, saving etc)
  • Create New...