Rob Posted April 4, 2012 Share Posted April 4, 2012 I've been trying to get a bunch of pages based on id, and according to the selector documentation the following should work: wire('pages')->find('id=6|7|8|9') But it doesn't seem to as I get an empty set returned. Each of those page IDs is valid and if I do the following: wire('pages')->find('id=6'); I get a PageArray with one item. Can anyone tell me if I'm doing something wrong? Link to comment Share on other sites More sharing options...
Soma Posted April 4, 2012 Share Posted April 4, 2012 It works normally here as it should. Can you provide more details, where and how you're using it? Link to comment Share on other sites More sharing options...
apeisa Posted April 4, 2012 Share Posted April 4, 2012 One thing to remember: find does user access checking: so to make sure you have rights to see those pages, login as superuser. Link to comment Share on other sites More sharing options...
Soma Posted April 4, 2012 Share Posted April 4, 2012 Then he's second example wouldn't work either I guess. Link to comment Share on other sites More sharing options...
Rob Posted April 4, 2012 Author Share Posted April 4, 2012 It was permissions I think. I was trying to fetch repeater data but these are superuser-only pages hidden under /admin so it didn't work from my php interactive mode code. Link to comment Share on other sites More sharing options...
Soma Posted April 4, 2012 Share Posted April 4, 2012 You think? Then your second example wouldnt work either. You can add include=all and it will ignore permissions. 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