-
Posts
1,065 -
Joined
-
Last visited
-
Days Won
11
Everything posted by Zeka
-
Template Tag Edit in List (like Field's "Manage Tags")
Zeka replied to BitPoet's topic in Module/Plugin Development
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 -
Hi. I have got a request from clients editors to hide some of the unnecessary notifications for some roles. Is it possible? Thanks.
-
Removing parent from url...prevents pagination from working correctly?
Zeka replied to J_Szwarga's topic in API & Templates
@J_Szwarga Have you tried to set base URL? https://processwire.com/api/ref/markup-pager-nav/set-base-url/- 1 reply
-
- 1
-
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
-
@Robin S This is terrible. I don’t know how I overlooked it, сause I've looked at this part so many times Thanks!
-
Search index not looking for data in repeaterMatrix
Zeka replied to cboetens's topic in API & Templates
https://modules.processwire.com/modules/search-engine/- 2 replies
-
- 1
-
- search form
- search script
-
(and 2 more)
Tagged with:
-
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.
-
@felted This module is not installed by default. Go to Module-> Core and install it.
-
@flydev ?? Thanks. Any ideas where to look?
-
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
-
Change redirect url on page deletion from page delete tab
Zeka replied to Zeka's topic in General Support
@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/'); } } }); } -
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?
-
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.
-
@hansolobg Did you include your class file?
-
@mader-christoph Sorry, but I don't have anything to say regarding your question, but there are several related threads^
-
https://modules.processwire.com/modules/admin-restrict-branch/
-
Time Delay to get email using Login/Register Module
Zeka replied to JeevanisM's topic in General Support
@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 -
Time Delay to get email using Login/Register Module
Zeka replied to JeevanisM's topic in General Support
@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/ -
Time Delay to get email using Login/Register Module
Zeka replied to JeevanisM's topic in General Support
@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. -
@Xonox PW 3.0.145 and ProcessPageClone 1.0.4
-
@tpr Do you plan to implement support of webp?
-
@Cupacabra Is there template file for the 'b' template?
-
@digitex Try to use $hp->video->httpUrl.
-
@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