Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

36 Excellent

About snobjorn

  • Rank
    Sr. Member

Contact Methods

  • Website URL

Recent Profile Visitors

3,939 profile views
  1. It seems to be an issue with the RSS feed for the ProcessWire blog at https://processwire.com/blog/rss/ , which has not been updated since the 3.0.154 / 3.0.155 post in late April.
  2. Thank you @huseyin, I got it working with the suggested Ajax Search module and some minor tweaking with inspiration from your site and ProcessWire.com. In the end I decided not to use the live search anyway. But I got to try it out, and it could be useful for future clients.
  3. I have a few clients that I work for as a freelancer besides my full time job. So I cannot compare to 500. But I have a preferred shared hosting provider that I use and recommend, based on a few arguments such as it having a great pricing model, being stable and my knowledge of it. Although I have clients with different shared hosting providers if they want that. I think cost matters for both my business and my clients. If I should run a server, learn enough about server security and stability beside web development, the cost for my clients would be more than they would be willing to pay today. If I had more clients, maybe it would be otherwise. I mostly handle support inquiries between my client and their shared hosting provider as well.
  4. I have a website with multiple content types that I want to be accessible through search. I really like the live search on processwire.com, that sorts content types while typing. I tried to find the code to recreate this, with no luck. Does anyone know if this is jquery, specific jquery plugins, json/xml cached files, and what kind of PHP code is used? Any tip that point me in the right direction would be much apperciated. The search result listing seems fairly easy to create with sorting through parameters.
  5. I guess you're right, @zoeck. It was worth a try.
  6. I was looking at this plugin today, and I have the same question as @mn-martin three years ago: Is it still maintained @Jonathan Dart?
  7. Thanks for the cheat sheet, @szabesz. And you're code is great inspiration @Pixrael. Here's my code, @elabx, or parts of it. This is the code that gives me correct output. _main.php <?php namespace ProcessWire; ?> <!doctype html> … template stuff <footer pw-id=footer> … more template stuff </footer> </body> </html> some-page-template.php, the relevant code at the bottom: <?php namespace ProcessWire; ?> … template stuff <?php echo "<script data-pw-append=footer src=\"" . $config->urls->templates . "theme/js/showmore.min.js\"></script>"; echo "<script data-pw-append=footer type=\"application/ld+json\">" . json_encode($schema_review) . "</script>"; ?> But if I edit the last part, to <script pw-append=footer… instead of data-pw-append, it will output the scripts before <!doctype html>. That is what I don't get. Reading about the two variations being similar in usage.
  8. @huseyin I think it is worth the change for me. I used a method where i included head.php, header.php and foot.php on each template. Now I have it all in _main.php. That alone was a step for me in the right direction. Also, I have moved a lot of code around. My site has grown over time, so it was a lot of if statements in head.php e.g.: if ($page->template == "basic-page") { … Now I solve it with regions in _main.php and each template file. Still getting to know Markup Regions though.
  9. I am trying Markup Regions for the first time on a site these days. And I have read Markup Regions Front-End Docs at ProcessWire.com. There is says that "pw-" and "data-pw-" is doing the same thing. Although I get different output when I try both in the same situation. E.g. when I am trying to append a <script>-tag, I need to add data-pw-append=footer. With just pw-append, it will output the script above <doctype> and <html>. Also, I need to use data-pw-append inside a php function, with pw-append the same as above happens. Other places, I cannot recall exactly where, the opposite happens. Where I have to use pw-append instead of data-pw-append. (Or pw-id instead of data-pw-id). Is this normal behavior? Is there any more documentation on usage I have missed perhaps?
  10. I solved this with a work around. I checked if a page was modified in the last hour. If it was modified, I did not run the function. If it was not modified in the last hour, I run the function. That way, I could set the LazyCron to fire "every30Seconds".
  11. I'd like to set up a LazyCron function that fires every hour on each page that has a template named "post". So far I have gotten the function running. But when it has fired once on "Page with Title A", it takes and hour before it is fired again on any other pages. It makes sense, hooking the function with wire()->addHook(). What I want to do, is to get the function to be fired with LazyCron individually for each page. So that "Page with Title A" fires every hour (if it has pageviews), and "Page with Title B" is fired individually and possibly during the same timeline, if it has pageviews. Is this possible? Or might there be another way to utilize a sort of LazyCron on individual pages?
  12. I am exited about the search module that will be added to ProDevTools. Do you have an estimated time for when that will be released? @ryan
  13. A rather large update today for this language pack. Including a lot of new modules, some new Pro modules. And core translations for the 3.0.133 dev version. As usual, the translations is not complete. And some typos might exist.
  14. Something similar to this WordPress plugin is what I wonder if someone has seen / been working with? For ProcessWire.
  15. I am running on a PRO ISP (Norwegian) server with cPanel, Imunify 360, ModSecurity turned on and have recently (after 2 years without trouble) gotten some trouble with ProcessWire and the PageField AutoComplete showing a 403 notification in the ProcessWire Dashboard. The scenario is the following: I have a import script that collects data and creates ProcessWire pages and references in a four different PageFields. The data is collected from a JSON. The import might fire "too many" edits at the same time, and therefore the Imunify 360 security module in cPanel will try to prevent it. Afterwards, after the import (which works well) have been done, I want to edit a few of the PageFields manually, but when I type in the AutoComplete input field for the PageFields, the notification in ProcessWire only returns a "403.shtml" error. I turned off ModSecurity temporarily and managed to edit the field. Any one have an idea how I can whitelist ProcessWire with my import? (I can provide more details if necessary).
  • Create New...