Jump to content

Zeka

Members
  • Posts

    1,065
  • Joined

  • Last visited

  • Days Won

    11

Everything posted by Zeka

  1. This warning relative to search copabilities by tags that was introduced in 3.0.106 https://processwire.com/blog/posts/pw-3.0.106/#a-new-way-to-search-with-upgraded-tags-for-fields
  2. Hi. I have got a request from clients editors to hide some of the unnecessary notifications for some roles. Is it possible? Thanks.
  3. @J_Szwarga Have you tried to set base URL? https://processwire.com/api/ref/markup-pager-nav/set-base-url/
  4. Hi I'm moving quite a large news site from custom CMS to PW. Currently, it has 140000 pages. The current URL structure is like 2020/01/09/slug.html After import to PW all these pages will be under one parent "Archive" and will have new URLs and I'm thinking how better handle this amount of redirects. There is PagePathHistory module in the core with its quite convenient methods like $page->addUrl. But I'm not sure how it will perform with such number of rows. What do you think? Maybe there is a better way how to manage it? Eugene
  5. @Robin S This is terrible. I don’t know how I overlooked it, сause I've looked at this part so many times Thanks!
  6. Hi. I begin to rewrite hooks to custom pages types and have found out an issue with find method. My custom PagesType class doesn't implement find method and inherits it from PagesType class. which relies on $pages->find By default $pages->find method exclude hidden and unpublished pages, but if I call find on my custom PagesType it returns also unpublished pages, but not hidden. In code: class Posts extends PagesType { public function __construct(ProcessWire $wire, $templates = array(), $parents = array()) { parent::__construct($wire, $templates, $parents); $this->setWire($wire); $this->addTemplates("post"); // templates_id=51 $this->addParents($this->pages->get("template=posts")->id); // parent_id=1036, $this->setPageClass('Post'); } } // in home.php $news = wire('posts')->find('sort=-publish_from, limit=500'); // selectors => "sort=-publish_from, limit=500, parent_id=1036, templates_id=51" // returns 489 items including unpublished pages, but excluding hidden pages $news = wire('pages')->find('sort=-publish_from, limit=500, parent_id=1036, templates_id=51'); // selectors => "sort=-publish_from, limit=500, parent_id=1036, templates_id=51" // returns 480 items excluding unpublished and hidden pages Probably I missing something obvious, but I can't understand why it behaves in this way. In PagesClass::find I don't see anything that can affect on Pages::find. Maybe it's intended behavior with PagesType? Thanks, Eugene.
  7. Zeka

    PAGE CLONE

    @felted This module is not installed by default. Go to Module-> Core and install it.
  8. @flydev ?? Thanks. Any ideas where to look?
  9. Hi. I get logged out when I try to save a page which contains emojis like ?, but fields are saved. Then when I try to log in back on the same URL I get 'This request was aborted because it appears to be forged.' I tested it on several setups. Could somebody confirm the issue? Setup: PW 3.0.148 InnoDB utf8mb4_general_ci
  10. @Robin S Thanks. For now, I ended up with .... $this->wire()->addHookAfter('Pages::trashed(template=link-block|post|tag)', $this, 'customRedirectOnDelete'); public function hookRedirectOnLinkBlockDelete($event) { $event->wire()->addHookBefore('Session::redirect', function(HookEvent $event) { $url = $event->arguments(0); if($this->process == 'ProcessPageEdit') { $admin_url = $event->wire('config')->urls->admin; if(strpos($url, $admin_url . 'page/?open=') === 0) { $event->arguments(0, '../trash/'); } } }); }
  11. Hi. Hi. By default when you delete a page from delete tab on page edit screen it redirects to URL like 'admin/page/?open=1033' where 1033 is ID of the parent of deleted page. I'm using a custom process module for managing news pages, so I want to redirect to my custom trash page. This URL is hardcoded in ProcessPageEdit module https://github.com/processwire/processwire/blob/master/wire/modules/Process/ProcessPageEdit/ProcessPageEdit.module#L2434 AFAICS the only way to change it is to hook ProcessPageEdit::buildFormDelete, remove default checkbox, add custom one and then hook to ProcessPageEdit::processInput, execute custom delete function. Is it? Maybe there is easier way?
  12. Hi. Is it possible to set matrix/repeater item collapsed/uncollapsed state via API? Currently I set 'Repeater item visibility in editor' setting to 'Items always open (disables dynamic loading for existing items)' , but it more like a workaround than a solution. Thanks, Eugene.
  13. @hansolobg Did you include your class file?
  14. @mader-christoph Sorry, but I don't have anything to say regarding your question, but there are several related threads^
  15. https://modules.processwire.com/modules/admin-restrict-branch/
  16. @JeevanisM Have you tried to install WireMailSmtp or WireMailGmail? I have never used Login\Register module, but from code, I don't see some predefined function for disabling Link Sending feature. One thing that you can do is to hook and replace ___processRegisterForm method. https://processwire.com/docs/modules/hooks/#how-can-my-hook-replace-another-method-entirely
  17. @JeevanisM PW has WireMail base class and this class can use different senders to actualy send emails. There is branch of such modules: https://modules.processwire.com/modules/wire-mail-smtp/ https://modules.processwire.com/modules/wire-mail-gmail/ https://modules.processwire.com/modules/wire-mail-mailgun/ See more here https://modules.processwire.com/categories/email/ So you can try different sender to see which work best for you There is new module that helps to log information about all mails that are sent https://modules.processwire.com/modules/rock-mail-logger/
  18. @JeevanisM I don't think that your issue is relative to module. You can try to use https://processwire.com/blog/posts/introducing-tracy-debugger/#mail-interceptor-panel to see how fast PW sends mail.
  19. @Xonox PW 3.0.145 and ProcessPageClone 1.0.4
  20. Zeka

    MarkupSrcSet

    @tpr Do you plan to implement support of webp?
  21. @Cupacabra Is there template file for the 'b' template?
  22. @digitex Try to use $hp->video->httpUrl.
  23. @cst989 The issue could be that you incorrectly set ID of a page and then you get redirect to bookmarks page. Redirect is handled here https://github.com/ryancramerdesign/ProcessWire/blob/master/wire/modules/Process/ProcessPageEdit/ProcessPageEdit.module#L77
×
×
  • Create New...