DrQuincy Posted September 5 Share Posted September 5 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. Link to comment Share on other sites More sharing options...
poljpocket Posted September 5 Share Posted September 5 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 Link to comment Share on other sites More sharing options...
DrQuincy Posted September 5 Author Share Posted September 5 Awesome, thanks. Link to comment Share on other sites More sharing options...
Robin S Posted September 5 Share Posted September 5 You could also try Lister Selector: https://processwire.com/modules/process-lister-selector/ 3 Link to comment Share on other sites More sharing options...
DrQuincy Posted September 5 Author Share Posted September 5 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 Link to comment Share on other sites More sharing options...
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