Jump to content

Find users


nabo
 Share

Recommended Posts

Another way via a hook in /site/ready.php:

$wire->addHookBefore('ProcessPageLister::execute', function(HookEvent $event) {
	// Only for main "Find" lister
	if($event->wire('page')->name !== 'lister') return;
	$lister = $event->object;
	$lister->allowSystem = true;
});

2019-03-29_194425.png.7f60c4d79d11c086ebb052c0aa747509.png

This (and @adrian's suggestion) will only work for superusers because non-superusers are not allowed to view user pages.

  • Like 4
Link to comment
Share on other sites

  • 2 months later...
On 3/29/2019 at 6:22 AM, adrian said:

It's a bit dinky, but it works and can be bookmarked

image.thumb.png.653f7f5b5dcf9e78bebda967a1e737e2.png

I've tried... but I don't get any results... this is the selector in use:

has_parent!=2, _custom="template=user", limit=25, sort=-modified, include=unpublished

I also would like to display ProcessPageLister in a custom module 

$pl = $this->modules->get("ProcessPageLister");
$pl->defaultSelector = "template=3, parent=29, include=all, limit=100, status<9999999, sort=name";
$out = $pl->execute();
return $out;

but... this is the result

1685998148_Schermata2019-05-29alle18_04_06.thumb.png.b374b6c5c0469f344ae5487ddffab1a7.png

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...