nabo Posted September 16, 2019 Posted September 16, 2019 Hello I wrote a module with a hook in page render. The problem is that the hook works also when page are "rendered" in lister. Is it possible to isolate the page render only to the single page view? thanks
Zeka Posted September 16, 2019 Posted September 16, 2019 You can check whether page rendered in admin if so, do nothing. if (strpos($_SERVER['REQUEST_URI'], $this->wire('config')->urls->admin) === 0 || $this->wire('page')->template->name == 'admin') return; 3
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now