Soma Posted June 3, 2013 Share Posted June 3, 2013 If you're no aware of this, you can get the selectors string that is used to produce a resulting PageArray with $a->getSelectors(). http://cheatsheet.processwire.com/?filter=getSelectors&advanced When printing this out in your templates html, I noticed that if you have used a "<" operator it will cut off the string from there, because it's rendered in html. To get around this simply use: echo htmlentities($result->getSelectors()); 2 Link to comment Share on other sites More sharing options...
kongondo Posted June 3, 2013 Share Posted June 3, 2013 (edited) Sweet! Thx for the tip.. Tested it and got something like parent_id=1007, sort=title, limit=12, status<1024 Btw, what is status<1024 ? Edited June 3, 2013 by kongondo Link to comment Share on other sites More sharing options...
teppo Posted June 3, 2013 Share Posted June 3, 2013 Btw, what is status<1024 ? Status flag 1024 means that a page is hidden. That (<1024) asks for pages not hidden (ie. status smaller than 1024.) See https://github.com/ryancramerdesign/ProcessWire/blob/master/wire/core/Page.php#L58 for details. 2 Link to comment Share on other sites More sharing options...
kongondo Posted June 3, 2013 Share Posted June 3, 2013 Thx Teppo 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