Jump to content

Alpine418

Members
  • Posts

    97
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Alpine418

  1. Sorry, I'm mean after a page load when the current page get fetched from the database. Page::added get called when I create a new page. I've a use case where I want a run a method of my custom page class. But if I run the method in the constructor, not all properties of page are loaded (e.g. httpUrl).
  2. Hi, is there a hook after the current (active) page got created? Or which method got called in the Page class after the Constructor of the current page got initialized? Thanks.
  3. Correct this works. But what is if I dont want a wrapper around tabcontents in the forms?
  4. Omfg, I was blind. ? From... $page->save('redirect_counter') ...to... $page->save() ...did it. Sometimes I cannot see the tree because of the forest... or somehow. ?
  5. Hi guys, the field "redirect_last" of type DateTime got not updated. The update on the field "redirect_counter" works and got saved. Does anybody know what I did wrong in my code? if ($input->urlSegment(1) === 'redirect') { $page->of(false); $page->redirect_last = time(); $page->redirect_counter += 1; if ($page->save('redirect_counter')) { $session->redirect($page->website_url, 302); } } Thanks.
  6. Thank you! Could not test it yet. But wow, what a fast response. ?
  7. Duplicator does not work with PHP 8 anymore. get_magic_quotes_gpc() is removed. Is there any Roadmap to see how the module get evolved in the next few months?
  8. I found the issue and created a pull request with a fix. Problem: If SeoMaestro is mapped to a page fieldset or page repeater (e.g. $page->meta->seo), the fieldset will be handle as first page for the breadcrumb aka structured data and got listed as item. Solution: I added a check to prevent the listing of pages based on PageRepeater. Link to the pull request: https://github.com/wanze/SeoMaestro/pull/25
  9. The admin page and repeaters are getting listed as pages in structuredData: I'm using the latest PW and module version. Is this a bug or a configuration issue? Thanks for your support, rjgamer
  10. Foud the solution: ini_set("xdebug.var_display_max_children", '-1'); ini_set("xdebug.var_display_max_data", '-1'); ini_set("xdebug.var_display_max_depth", '-1'); Source: https://stackoverflow.com/a/34342948/2338829
  11. My debuglog is shortified (see last line). What can I do to get the complete log? array (size=1) 'DEBUGLOG' => string ' Resolving SMTP server domain "smtp.mailtrap.io"...<br /> Connecting to SMTP server "34.192.182.255" port 587...<br /> Connected to SMTP server "smtp.mailtrap.io".<br /> S 220 mailtrap.io ESMTP ready<br /> C EHLO pw-basic.local<br /> S 250-mailtrap.io<br /> S 250-SIZE 5242880<br /> S 250-PIPELINING<br /> S 250-ENHANCEDSTATUSCODES<br /> S 250-8BITMIME<br /> S 250-DSN<br /> S 250-AUTH PLAIN LOGIN CRAM-MD5<br /> S 250 STARTTLS<br /> C MAIL FROM:<noreply@foo.bar><br /> C '... (length=625)
  12. Love ya! Thank you so much!
  13. Any hint how to combine AutoTemplateStubs with custom page classes? So I get autocomplete for the methods of my custom page class and the properties of the stubs of the same class together?
  14. I'm not 100% sure at the moment. But I didn't delete the old tables when I installed a backup made by Duplicator (tought it would drop all tables first). I will keep you up to date.
  15. Why is the corresponding table not automatically deleted by ProcessWire after a field is deleted in the admin panel? Now I have numerous "dead" tables of no longer existing fields in the database of my ProcessWire installation. Or is there a configuration that I have missed? Thanks for your support.
  16. @Robin S @ryan maybe you can answer my question?
  17. Hi, I'm using Fieldset (Page) a lot for my sites. But unlikey the field only support fieldset as fieldset type. Is there any support to choose the fieldset type for Fieldset (Page), like it is supported for Fieldset (Group)? Example of the fieldset type selection for Fieldset (Group): Thanks.
  18. @Robin S Can you please provide use the TemplateStub fixes? Issue: https://github.com/mindplay-dk/TemplateStubs/issues/1 Or is there another solution now, to get the template fields auto completed? Thanks.
  19. Wow, thank you mate for your fast response to my feature request!
  20. Hi guys, I recently visited GitHub, researched the source code of ProcessWire and created a pull request for a small typo fix. But what I saw did not make me really happy. ProcessWire has a huge list of mostly small but usefull pull requests which are all open. https://github.com/processwire/processwire/pulls?page=1&q=is%3Apr+is%3Aopen Why is this? If they are not usefull, why are the pull requests not getting closed? Best regards, rjgamer
  21. Found the problem: The autodetection does not detect the current page. Instead it detects and uses the Repeater Matrix page as current page, which does not have a template with allowPageNum enabled. Fix: Add the real page as option to the pager if you need pagination in Repeater Matrix. Check 3rd line: ... echo $items->renderPager([ 'page' => wire('page'), 'listMarkup' => '<nav aria-label="navigation"><ul class="pagination">{out}</ul></nav>', 'itemMarkup' => '<li class="page-item {class}">{out}</li>', 'linkMarkup' => '<a class="page-link" href="{url}">{out}</a>', 'currentLinkMarkup' => '<a class="page-link" href="{url}">{out}</a>', 'currentItemClass' => "active" ]); ... File: partials/feed/items/list.php
  22. Yeah, I dont know why. There is also no error or any redirect. ?
×
×
  • Create New...