Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

16 Good


About VeiJari

  • Rank
    Jr. Member

Recent Profile Visitors

307 profile views
  1. Hi, Our problem is that we're making the map marker template from another template via page reference. We've tried to add our own checkbox "show map" but it has proven quite difficult to follow the geotag ON/OFF logic. I would love to see if someone has figured this out. TLDR is there anyway for checking if the map is enabled, or do I have to make my own checkbox logic for it
  2. Works, thank you for the quick response yet again! :)
  3. @teppo Hey, is there a way to exclude the path from the summary results? I've added a custom config table and I've managed to change the "summary" field to our corresponding one. But I couldn't find a way to exclude 'result_path' in renderer.php on line 204. (other than just comment it out) Is this something that needs to be added? Or is there a trick to it?
  4. And another clarification whan I mean by an error, if you make a field required in the backend, it prompts an error above the field ('this field is required"), this is the error I want to make from the api. Thank you
  5. Thank you, it's only to compare it to a backend field that only admin's has access to. I understand the basic principle now.
  6. Sorry for the confusing question. Let me clarify. I'm talking about how to detect if I get a session error on backend in hooks. Also is there a way for us to give an error considering only a inputfield in backend, instead of just getting a session error? Thanks
  7. It seems my question is too confusing? 😞
  8. Hello forum, this is my first security related post, so I'm a bit of a newbie. I understand that when I have direct front-input from user I should sanitize the input, but how about when I use a secret key for showing a API for a third-party supplier? Should I sanitize the input->get() key? I've tested this issue and I tried ?key=<?php echo $page->field; ?> And without adding any sanitization it comes back: /?key=<?php%20echo%20$page->field;%20?> So can I rely on this, or should I still use $sanitizer just in case? Thanks for the help!
  9. Updated to the latest version and also you fixed the items url's not including the rooturl, cheers for that! Now I can also translate without problems, thank you for correcting errors in such a short notice! +1 recommendation for this mod.
  10. Upgraded to the latest version and warnings disappeared. I also noticed that you have to manually add the search_index field to the templates you want to index. I assumed it would automatically add them to the templates you want to index. It could be handy, but not a deal breaker to the honest. Now I got it working, thanks for your help! The next step is to translate the texts. I tried to do it via language, but nothing changed? So there's no translate support yet?
  11. @teppo First I would like to thank you for creating this module! However, I'm having problems with it. When I try to index my fields I get two warnings: Warning: Declaration of SearchEngine\Renderer::__get(string $name) should be compatible with ProcessWire\Wire::__get($name) in xxx/modules/SearchEngine/lib/Renderer.php on line 581Warning: Declaration of SearchEngine\Query::__get(string $name) should be compatible with ProcessWire\Wire::__get($name) in xxx/modules/SearchEngine/lib/Query.php on line 226 Then it says "indexed 0 pages in 0 seconds". Why does it do that? Thank you.
  12. require './vendor/autoload.php'; this did the trick, when I desperately changed the folder name. Thanks for you help!
  13. @MoritzLost Thanks for the tutorial! I just have a major problem and I don't have a clue why this happens. in site/config.php when i try to require the path to my autoload.php: require '../../libraries/vendor/autoload.php'; autoload is located at: websitex/libraries/vendor/autoload.php Everything is white, every single page. I assume I'm getting some error on this instance, but I can't check it anywhere. When I comment it out, everything works (except the library I'm trying to use in the first place) What should I do?
  14. @David Karich Very useful module, works like a charm! I was just wondering if there could be a way to call the resetPageViews from a template file? I would find it more valuable if there's an option to reset templates' page hit counter from the template itself. That way, we don't have to give access to the module settings for the average user to reset page hits. I've tried to use it, but it seems that the module itself doesn't have a clue about the modules' methods. If this is something that Processwire doesn't process, someone could point out that for me :D Thank you!
  15. Hello forum. I'm trying to figure out how to detect if current form has errors after saving it in pw admin page. This is so that our event location isn't added in database if we detect errors. But I can't seem to find a correct way to detect errors? I only found the wire()->errors() and it always triggers even if I don't have any errors. How can I detect errors in a form? By error I mean $page->error('this is the red error');
  • Create New...