Jump to content


  • Posts

  • Joined

  • Last visited

Recent Profile Visitors

2,943 profile views

Maverick's Achievements

Jr. Member

Jr. Member (3/6)



  1. Hi guys, Does anyone know if the latest version of Dynamic Selects has the possibility to sort the child selects on frontend? So you can sort the items based on name?
  2. Hi guys, Does anyone know how to add sorting tot the child selects? The first select can get sorting in the dynamic selects settings, for example sort=name and it works nice, but for some reason it doesn't work for the second and third selects. I have tried to manually drag and drop the items in the admin for the alphabetical order, I also tried to set all parents sort settings to sort=name but that doesn't move it either. In your example @kongondo you also see this behaviour (frontend dynamic selects example) Let's say I have Continent, Country, City selects. Under my country select I have USA, Mexico, Argentina. The country pages were added in this order, so 1 USA, 2 Mexico and 3 Argentina. Argentina is always as the last item in the dropdown select (on frontend). If I add Zimbabwe under Country parent, the Zimbabwe will be last in the dropdown select. So it seems that the child drop down selects are always being sorted by creation date? Can this be setup to work in alphabetical order?
  3. Can you help me out understanding the working of the extensions: If I have a template basic_page_with_contact_form and in this template, I have a field personInCharge (type e-mail) Now I make few page's using the basic_page_with_contact_form template, for example page1 with e-mail test1@website.io and page2 with e-mail test2@website.io and I put different e-mail addresses in the field personInCharge Now I build a form with few fields for example name, age, town In the settings (Actions) of the form I check Send e-mail to administrators and I fill it with: !personInCharge?email Then I embed the form in the basic_page_with_contact_form template Now if I go to page1 and fill in the form with name, age, town fields would the submit form be sent to test1@website.io ? I tried to set it up the following way (the result is that the e-mail submission is not sent), smpt settings are ok, this is on PW version 3.
  4. Hi guys, Can you tell me if it is possible to build a form with Form Builder https://processwire.com/store/form-builder/ having checkboxes with input field option? So on the frontend there would be a checkbox like "Other" where you can enter something yourself. What I am having in mind is this
  5. Hi guys, Do you have the map marker module working in version 2.8 or version 3? In processwire admin, I can see the map, but then when I go to the page where the map should be showing, I'm getting an error: " MarkupGoogleMap Error: Please add the maps.google.com script in your document head. The map is not showing on the page. " I have fresh processwire installation it seems that the module injects the google maps script before html tag, it seems to be causing the problem... I'm not sure how to solve this <script type='text/javascript' src='/site/modules/FieldtypeMapMarker/MarkupGoogleMap.js'></script><div id='mgmap1' class='MarkupGoogleMap' style='width: 100%; height: 300px;'></div><script type='text/javascript'>if(typeof google === 'undefined' || typeof google.maps === 'undefined') { alert('MarkupGoogleMap Error: Please add the maps.google.com script in your document head.'); } else { var mgmap1 = new MarkupGoogleMap(); mgmap1.setOption('zoom', 12); mgmap1.setOption('mapTypeId', google.maps.MapTypeId.HYBRID); mgmap1.init('mgmap1', 40.712776, -74.005974); mgmap1.addMarker(40.712776, -74.005974, '/en/about/', 'About', ''); }</script><!DOCTYPE html> <html lang="en"> <head> when I paste the code inside <head> manually, then I can see the map on the page where it should be visible. Any suggestions?
  6. Hi there, I was just testing the module out, very cool. I wonder, Is there any way to redirect the latest selection to it's page (on frontend using MarkupDynamicSelects)? For example you select continent, then country, then city and you click on "Go" button which redirects you to the city page you have selected.
  7. Thanks guys, I just saw it indeed. I think its exactly what Im looking for. Its for front end. I will just wait. Maybe kongondo will decide to release the front end possibilities. That would be amazing.
  8. Not sure what it was, but 1. Version 3 installed without problems 2. Restart helped installation of 2.7 3. I tried to use php 5.5 5.6 and 7 (no difference in working, but 7 gives better performance)
  9. Hi there, I'm looking for someone who could modify my current dropdown chain selection based on pages (parent (countries) -> child (country provinces) -> sub child (cities) ) or propose different approach. What I'm trying to do is display pages with cities description (including picture) based on selection country -> province -> cities About 50 countries, per country about 10/20 provinces and per province about 10/30 cities The only requirement for this is that it won't slow down the site. At the current moment the pages are loding quite long. If you are interested I'll send you the dev url
  10. Yes completly fresh install, fresh database, standaard template edit Im not using any domain though, so it uses IP instead but I think it shouldn't matter, should it?
  11. Hi there guys, I wonder if anyone had ever an issue like this with installation I was about to check something out quickly so I've set up a digitalocean with ubuntu 16 droplet and then connected it to servepilot where I made a database. So far so good but when I try to install processwire I get this Test Database and Save Configuration Database connection successful to pw2 Saved configuration to ./site/config.php SQLSTATE[42000]: Syntax error or access violation: 1067 Invalid default value for 'created' SQLSTATE[42000]: Syntax error or access violation: 1067 Invalid default value for 'created' SQLSTATE[42S02]: Base table or view not found: 1146 Table 'pw2.modules' doesn't exist SQLSTATE[42S02]: Base table or view not found: 1146 Table 'pw2.modules' doesn't exist SQLSTATE[42S02]: Base table or view not found: 1146 Table 'pw2.modules' doesn't exist SQLSTATE[42S02]: Base table or view not found: 1146 Table 'pw2.modules' doesn't exist
  12. Thanks for the suggestion Would this be something like this, just read about the markupcache in another thread: $cache = $modules->get("MarkupCache"); if(!$data = $cache->get("france_options")) { foreach($pages->find("parent=/continent/europe/france/") as $france) { $data .= "<option value='{$france->url}' class='france'>{$france->title}</option>";} $cache->save($data);} echo $data; if(!$data = $cache->get("usa_options")) { foreach($pages->find("parent=/continent/north-america/usa/") as $usa) { $data .= "<option value='{$usa->url}' class='1usa'>{$usa->title}</option>";} $cache->save($data);} echo $data; and so on for every country... Yesterday I was trying to run this chained selection with 193 countries holding about 300 cities (without markupcache), the page was loading 7/8 seconds So far, I realize my approach is very much inefficient (php/processwire newbie) The last selection seem to be the biggest "bottleneck" since I echo all possible country options (cities) at once, so that explains the high load time I believe Not sure how it's possible to render the right cities at the right time (only the cities that are child of a specific parent who has been selected in the second selection step).
  13. Hi guys, I am trying to make a dependent selection for list of cities (dependent on country and continent. So first you select the continent, then country and the city which redirects you to the city page What I have in my processwire Mainsitename -------Continent ------------Europe ------------------France -------------------------Paris -------------------------Marseille ------------North America ------------------USA -------------------------New York -------------------------Boston ------------Asia ------------------Thailand -------------------------Bangkok -------------------------Hat Yai I used so far this ajax plugin to make it all "chained" http://www.appelsiini.net/projects/chained In the template where I have the selection menu this is the code I'm using: <div class="form-group" > <select class="form-control" id="continent" name="continent"> <option value="">Continent</option> <option value="Europe">Europe</option> <option value="North America">North America</option> <option value="Asia">Asia</option> </select> <select class="form-control" id="country" name="country"> <option value="">Country</option> <option value="France" class="Europe">France</option> <option value="USA" class="North America">USA</option> <option value="Thailand" class="Asia">Thailand</option> </select> <select class="form-control" id="city"> <option value="">City</option> <?php $root = $pages->get("/continent/europe/france/"); $children = $root->children(); foreach($children as $child) { echo "<option value='{$child->url}' class='france'>{$child->title}</option value>"; }; $root = $pages->get("/continent/europe/usa/"); $children = $root->children(); foreach($children as $child) { echo "<option value='{$child->url}' class='usa'>{$child->title}</option value>"; }; $root = $pages->get("/continent/europe/thailand/"); $children = $root->children(); foreach($children as $child) { echo "<option value='{$child->url}' class='thailand'>{$child->title}</option value>"; }; ?> </select> </div> And it works all right, I can select the continent, then a country and then one of the available city of this country and it redirects me to the city page for example /continent/france/paris However, my concern is that if the lists gets bigger, this approach will make the site slow (not sure though), my question is, what would be a better approach to achieve this? or should this be ok?
  14. The lightbox effect which I use, is purely css, didn't want to use any javascript for this, but I guess this is the problem then? or can I still get it to work somehow? .lightbox { position: fixed; z-index: 999; width: 100%; height: 100%; text-align: center; top: 0; left: 0; background: rgba(0,0,0,0.6); display: none; } .lightbox img { margin-top: 5%; } .lightbox:target { outline: none; display: block; }
  • Create New...