-
Posts
2,233 -
Joined
-
Last visited
-
Days Won
47
Everything posted by netcarver
-
Thanks to @gmclelland, we have a fixed PW3 branch (now at v3.0.2) and some extended documentation for the tile layer support option in both branches.
-
Small bugfix pushed for a problem with the default marker URLs. Master branch (not namespaced) now at v2.8.1 and PW3 branch (namespaced) now at v3.0.1.
-
@webhoes Are you sure you're posting this issue in the correct place? This thread deals with the Leaflet maps module, but your code looks like it is using the Google maps module.
-
I've also just pushed a PW3-only branch which uses namespaces, should anyone want to try it.
-
v2.8.0 is out. It's a trivial fix for a problem with the PW3 FileCompiler (it was inserting the Processwire namespace into PHP-generated js code used on the front end). NB: The js class now used in the code is jsMarkupLeafletMap instead of MarkupLeafletMap. You may need to adjust your js code to allow for this. I've also taken the opportunity to bump the field numbers to bring some continuity across the files.
-
@FrancisChung Is this for a search you want to kick off via a page on your PW site - where the user can enter some variable search term? If so, how about a Click() handler on the submit button that issues 3 distinct ajax searches against the backend? Here's some pseudo-JQuery to illustrate the idea. To keep it shorter, this example kicks off two async ajax calls to the back-end to get search results as JSON and then renders the output once both calls have returned (either with or without data.) $('#submit-button').click(function () { var searchA = false, searchB = false; // Kick off asynchronous call to get results for search A... // return results as JSON jQuery.ajax({ url: '', // Construct a url to trigger search A success: function (result) { searchA = true; // Add code to store result JSON... rendezvous(searchA, searchB); } }); // Kick off asynchronous call to get results for search B... // return results as JSON jQuery.ajax({ url: '', // Construct a url to trigger search B success: function (result) { searchB = true; // Add code to store result JSON... rendezvous(searchA, searchB); } }); }); function rendezvous(A, B) { if (A & B) { // Use JQuery to combine, format & render search results in your current page } }
- 9 replies
-
- 3
-
- asynch
- asynchronous
- (and 8 more)
-
@Beluga I like the idea. You might need to message Ryan or Pete directly with your request; I'm not sure they'll read this thread - but I hope I'm wrong
-
@SamC Thank you. Same to you and the rest of the PW community.
-
Upgrading from Thumbnails module to Croppable Image 3
netcarver replied to jacmaes's topic in General Support
For those wanting to delete source images, you can find my script in this Gist. Make sure you have successfully converted the images to the CI3 standard before you run it to delete the source images. -
Perhaps running the 6G Firewall might help.
-
@3fingers So, all the resources are loading - and there are no errors - and there is no output? Ok - is this on a local development box or on a server I can take a look at? Edited to add: I have seen a correctly set-up map fail to load if a browser is blocking scripts using an extension like noscript/umatrix/ublock-origin etc.
-
If you open up the inspection tools in your browser and reload the page, are there any resources that fail to load or any js errors reported?
-
Any module guide/steps for beginner?
netcarver replied to Speed's topic in Module/Plugin Development
Google is your friend, lots of results in there. Some of the more useful... Ben's beginner's tutorial on tuts+ Teppo's articles on textformatter modules and hooks (you'll need hooks if you are writing modules.) The example "Hello World" module that ships with PW. Other threads from the forum: A, B & C. Hope that helps! -
Wishlist: Add a "Siblings" tab to edit mode
netcarver replied to creativejay's topic in Wishlist & Roadmap
I think @Macrura has a module that does allows you to go to the previous or next sibling already. I don't think it allows you to select from a list though. -
Great concept - but the implementation seems to appear to mess with settings on other module's pages. When visiting the config page for any other module, I'm now getting an error in the JS console about WireTabs being undefined.
-
Works very nicely. Thank you again @kixe
-
@kixe Thanks for that!
-
How to show all child pages on the editor?
netcarver replied to OpenBayou's topic in Getting Started
@OpenBayou I'm not sure I totally understand your question, but you can view the children of any page either directly from the page tree or by editing a page and looking at the "Children" tab. The lists are paginated though - if you have a lot of children, you won't see them all at once. -
The stripe module @kongondo mentioned above works really well.
-
@Rajiv I see that there is a repeat of your post above as a new topic. Just to let you know; I've deleted the new topic as it had far less information in it than the thread here. You should still be able to get assistance with your problem here. Cheers!
-
@Nagendra Hello As far as I know, all the code needed is in the first post in this thread, (link to first post). Have you tried following the tutorial? If so, can you describe what is, and what is not, working and perhaps people can try to help you out. Your request, as it stands, is pretty ill defined.
-
<attempted geek joke> If you are into the new syntax of PHP 7.1, how about something like this... public function declareBrexitReferendumResult() : void; /* UK version */ public function declarePresidentialElectionResult() : void; /* US version */ ...take your pick. </attempted geek joke>
-
Events Fieldtype & Inputfield (How to make a table Fieldtype/Inputfield)
netcarver replied to ryan's topic in Modules/Plugins
@bubx2k Welcome to the forums. Nice first post! -
Ok, if you inspect the page displaying the map with your browser tools, are there any JS errors or 404s showing up for the linked resources?