Jump to content

monollonom

Members
  • Posts

    426
  • Joined

  • Last visited

  • Days Won

    12

Everything posted by monollonom

  1. It looks really nice and congrats on the (re-)launch! A small bug I noticed though on the homepage with the scroll animation (using Firefox on MacOS): konkat.mp4
  2. If your CRON is directly calling your template’s php file then yes it won’t work because ProcessWire isn’t bootstrapped. For a client I’m also using a CRON job that calls: "wget -qO /dev/null https://myclient.com/path/to/page". It basically triggers a GET request and thus renders a page with my script in it (it also sends an email). But it seems OVH only allow to execute a php script so maybe you should look into bootstrapping PW, something like: <?php namespace ProcessWire; include("/path/to/your/pw/installation/index.php"); $pages->get("/your/mailer/")->renderPage(); Regarding your LazyCron PageRender::renderPage is not a static function so it wouldn’t work this way, you should instead do something like: <?php namespace ProcessWire; // in your init.php or ready.php $wire->addHookAfter('LazyCron::everyDay', function(HookEvent $event) { $event->wire()->pages->get("/your/mailer")->renderPage(); $event->log("mailer sent"); }; I’m only surprised by this, maybe they changed something in the meantime...
  3. Did you check https://processwire.com/modules/webp-to-jpg/ ?
  4. Do you mean your LazyCron hook is not triggered?
  5. Like you said a TextFormatter formats on output and thus should leave the original data intact (otherwise this could lead to unexpected behaviours). Best would be to create a module and hook before Pages::save for example to sanitize and convert those safe links
  6. It's because of the parenthesis in your pages’ title which, unescaped, act like OR groups. Actually it’s because of the commas 🙂 Try using IDs instead and then in your selector: "winner_name=$ids"
  7. With a quick search it looks like this is an issue from OVH rather than from PW. Do you have enough traffic to consider using LazyCron instead?
  8. Ah! My bad I misread your first post. I don't think I have a local setup with a non-namespaced TracyDebugger but if I do find one, I'll try to update and let you know if anything goes wrong.
  9. I would assume so as it’s part of the Core modules. Have you tried installing it?
  10. I've actually spotted it as a branch on your github and have been using it for some time now. I didn't face any issue as far as I can tell, though I'm using it very lightly, mostly for bd() calls and the console.
  11. Is "race" the only template that can be used for children of your page? If so you could instead use the name format to skip the Page Add step
  12. Given RepeaterMatrix is based on Repeater there are no differences performance wise. Actually I did it exactly this way for a project before I purchased ProFields so there’s nothing wrong with that. It’s (mostly) about convenience.
  13. Thanks! All of them are built using ProcessWire, it's my tool of choice ever since I got introduced to it close to 10 years ago 🙂
  14. The idea is to have the _main.php be the base for most of your templates and then on a case-by-case basis disable it per template and specify another appended file, e.g. _rss.php. So I would say no need to change anything in config.php 🙂
  15. As long as the output formatting is on you can assume your "$page->title" will return a formatted value and so in your case with the entities encoded thanks to the Textformatter. So no need to escape it again using $sanitizer. $sanitizer is mostly here to clean inputs from user-submitted forms or more broadly whenever you have to save external data you don't have control over.
  16. If you check the "Disable automatic append of file: _main.php" setting, then you can specify your "base.php" to be appended in place using the field right above
  17. Do you mean you removed these manually? If so then the installation must have failed as these are supposed to be deleted automatically once the admin account is created.
  18. Sorry I made a typo in the URL it’s ProcessPageList::getSelector (and not ProcessPageLister::getSelector), my bad
  19. Have you tried ProcessPageList::getSelector?
  20. After searching on the forum I stumbled upon this thread which seems to have the best attempts at doing what you’re trying to achieve: Maybe you could try one of these solutions?
  21. Funnily I tried exactly this yesterday and no unfortunately it doesn’t work because the repeater will check the access control of the page holding it. However it could a request to add a line to check if its access control is on, something like: public function getAccessTemplate($type = 'view') { if($this->template->useRoles) return $this->template; $p = $this->getForPageRoot(); return $p->id ? $p->getAccessTemplate($type) : parent::getAccessTemplate($type); } I tried and it worked but it wasn’t a fit in the end for what I was trying to achieve.
  22. I had to push a small update as I noticed on a new installation that it seems you cannot send an empty <mjml></mjml> tag anymore. The fix was rather simple: add a <mj-body> and it stopped complaining.
  23. I just pushed a tiny update to make adjustements to the CSS for the new Konkat theme. It’s just some spacing details and it now uses the --pw-border-color CSS var (and falls back to the original theme color if not set).
×
×
  • Create New...