Jump to content

Broken/buggy OR selector?


Rob
 Share

Recommended Posts

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

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

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
 Share

  • Recently Browsing   0 members

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