Jump to content

BFD Calendar

Members
  • Posts

    429
  • Joined

  • Last visited

Everything posted by BFD Calendar

  1. Well I have over 4500 pages with map references (https://www.birthfactdeathcalendar.net/places/), so converting them to anything else than MapMarker and/or Google should be something that can happen sort of 'all at once'.
  2. Bernhard, yes this is definitely useful! For instance, I'm redesigning a calendar page for a modelbuilding workshop where I want to add appointment slots for lasercutting. I'm using the Recurme calendar module, but I need a title and page name for every new page while the only things that matter - and need to show up in the calendar - are the student's name, the machine they want to book and the time slot. Student's and machine name are page reference fields and time slot a recurme field. With RandomPageName I don't need to bother to invent a new (original) page name all the time.
  3. Thanks zoeck and Peter. Leaflet also uses Google, so I presume you'll run in the same problem sooner or later, no? For the Here maps, I assume it needs a bit of working under the hood of MapMarker to get it working? In the mean time it turns out everything now works after 48 hours of patience with Google and my provider (OVH)....
  4. Since Google introduced billing for Google Maps I get an error "This page can't load Google Maps correctly" on my maps. I have a working API key and enabled billing, do I need any changes in ProcessWire as well?
  5. @dragan I was only using this to check if it showed the ID of the page I wanted the title of. But in the meantime the problem is solved. Any idea how to mark a topic as 'solved' by the way?
  6. Ha! Found it in the 'details' tab, I was looking in the 'input' tab.
  7. Page Auto Complete, set to multiple pages but change to single page makes no difference.
  8. Scratching my head, this works on a few sites but not on this one http://www.clubmoral.com/tourdates/... $features = $pages->find("template=concert, sort=-concnr"); echo "<ul>"; foreach($features as $feature) { // LOCATION FROM PLACES PAGE $placepage = $pages->get("template=places, id=$feature->place"); echo "<li><b>{$zeroconcnr} / <a href='{$feature->url}'>{$feature->title}</a></b> on {$fullstartdate->format('d M Y')}{$festival} in {$placepage->title}, {$placepage->city->title}, {$placepage->country->title} (ID={$placepage->country}). <i>{$video} ---{$feature->pagecounter}</i></li>"; }; echo "</ul>"; 'city' and 'country' are page fields on template 'places'. The title shows up, and '$placepage->country' shows id but '$placepage->country->title' doesn't show the title. Anything to do with the PHP version (5.4) on that site? It's the only thing that's different from the ones where it works fine.
  9. Indeed Vincent, I contacted OVH about it and it turned out that 'stable' instead of 'legacy' solved the problem. I hardly use the .ovhconfig anymore since OVH opened up more settings in the client interface.
  10. Yes, it's PHP 5.4. It's a free fast unlimited hosting but they don't want to upgrade. In the meantime I used Ryan's new import/export module and already finished very well what I wanted to do (copy pages from one site to another). I don't think I'll need it on this site, but thanks anyway.
  11. Installed this module and didn't get it to work at first, now I'm stuck with an error "Error: Using $this when not in object context (line 907 of /var/www/clubmoral_com/site/modules/BatchChildEditor/BatchChildEditor.module) " when I go to the parent page from which I want to export children as csv. PW 3.0.98 Module version 1.8.12
  12. Does anybody know how to format the end time of an event? 'timeFormat' => '%H', does the job fine 'timeEndFormat' => '%H', does nothing so timeEnd keeps the standard setting of 11:00pm where I want it to be 23u (Belgian/Dutch).
  13. I tried RockFinder Tester as well, but didn't find my way as I want either. I'm just an amateur programmer but nevertheless happy with ProcessWire capabilities for my needs as far as it gets. My main job is managing an Academic Design Workshop for 1500 students. The website (www.mekano.info) is just a side project next to operating lasercutters, CNC routers, a wide range of hand tools, and painting the studio floor during school holidays.
  14. I've used Lister before but didn't know it could also be used to make a custom InputField....
  15. Thanks for the tip, actually I tried RockGrid on another site earlier today but it was far above my capabilities to do anything with it. (I was looking for something to generate detailed reports from Padloper sales)
  16. Regarding Page Auto Complete fields I have the impression there already is a limit. In several templates I have a page field referring to a list of over 4000 places. When I want to add 'Paris, Île-de-France, France' from the list, that doesn't show up because the page are sorted alphabetically and the Page Auto Complete list starts with 'Paris Ier, Île-de-France, France || address 1', then 'Paris Ier, Île-de-France, France || address 2' and so on, then 'Paris IIe, Île-de-France, France || address 1' and so on. The list stops before just 'Paris, Île-de-France, France' shows up alphabetically. It's ok to find other places in Paris because part of the street name will do in the Page Auto Complete field, but it's just not possible anymore to add 'Paris, Île-de-France, France'. Changing the Autocomplete search operator doesn't work for what I want either (still searching by other parts of the address). This all happens in the admin pages, no front editing.
  17. My five cents for changing '$item->dag' into '$item->dag->title'.
  18. Yep, that's it. When I log out in Safari the page looks like it should. And the error appears in Chrome when I'm logged in as Superuser as well. (edit) Maybe because 'bfd_text_after' is a front-edit editable field?
  19. This is how it shows in Safari (version 11.1.1 on MacOS 10.11.6) here.... Thanks for pointing out JS errors
  20. When visiting a page (for instance https://www.birthfactdeathcalendar.net/events/2-july-1964/) in Safari it shows a textarea field twice. It doesn't in Firefox or Chrome. On this page the text of my textarea field 'bfd_text_after' is "performs 'Materialaktion nr. 10 / Das Stillleben / Aufführung mit Pferdekopf'". The code is if(trim($page->bfd_case->title)=='(x)') { echo $sanitizer->textarea($page->bfd_text_after, $options = array('allowableTags' => '<a>, <strong>, <em>')) . " "; }; There's only one 'bfd_text_after' in my template. And same happens with another textarea field as well. ProcessWire 3.0.62 - PHP Version 7.0.30
  21. Thanks, I knew it would be simple, if you know where to look....
  22. Another question about the standard ProcessWire search page. Is it possible to make a search for 'sara' and get results for 'sara' but also 'sarah'?
  23. I had the same problem and used the solution above. The module works now without the error, but it just doesn't work. Doesn't send me an email when the form is filled and doesn't save the message as a page.
  24. I'm sure some people will pull out a few hairs, but it works... $lendoutpages = $pages->find("template=lendout, student_name=$page->id, sort=-lendout_time"); if("$lendoutpages, count > 0") { echo "<br><hr><span class='verdana'><b>Lendouts (only on English page!):</b></span><br>"; }; foreach($lendoutpages as $lendoutpage) { if(empty("$lendoutpage->return_time")) { $return="<font color='red'><b>missing</b></font>"; } else { $return="<font color='green'><b>return ok</b></font>"; }; echo "<li><a href='{$lendoutpage->url}'><span class='verdana'>{$lendoutpage->lendout_time}:<b>"; $toolpages = $pages->find("template=tools, id=$lendoutpage->tool"); foreach($toolpages as $toolpage) { echo " | $toolpage->title"; }; echo "</b> -> {$return}</span></a></li>"; };
  25. Returns an error Error: Exception: Unknown Selector operator: '' -- was your selector value properly escaped?
×
×
  • Create New...