DrQuincy Posted September 5, 2024 Posted September 5, 2024 Is there an admin plugin to test out selectors? What I mean is, you'd have a text field where you can enter a selector and it gives your details of which pages would be affected/returned. I say “would be affected” as it would be useful to test out how live data would be affected so you can be 100% sure your selector is right. I hope that makes sense. Does such a thing exist? Thanks.
poljpocket Posted September 5, 2024 Posted September 5, 2024 To test selectors, I use TracyDebugger's console panel. It is useful to run a code snippet and see what it's output is. You can use it to test your selector, e.g.: d($pages->find('selector...')); Here is some more info about the console panel: https://adrianbj.github.io/TracyDebugger/#/debug-bar?id=console 3
Robin S Posted September 5, 2024 Posted September 5, 2024 You could also try Lister Selector: https://processwire.com/modules/process-lister-selector/ 3
DrQuincy Posted September 5, 2024 Author Posted September 5, 2024 17 minutes ago, Robin S said: You could also try Lister Selector: https://processwire.com/modules/process-lister-selector/ This is perfect. Nice and simple and just what I wanted, thanks. 1
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