Jump to content

Recommended Posts

Posted

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?

Posted

It works normally here as it should. Can you provide more details, where and how you're using it?

Posted

One thing to remember: find does user access checking: so to make sure you have rights to see those pages, login as superuser.

Posted

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.

Posted

You think?

Then your second example wouldnt work either.

You can add include=all and it will ignore permissions.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...