Jump to content

Recommended Posts

Posted

Hello,

I'm lost with my Matrix (profield) and how to look for data using selectors:

I have a matrix ("grid"), it has a 'matrix repeater type' mp4 that contains the fields 'mp4' and 'ratio' (and others):

image.thumb.png.37e74cc63b0e5cc874c91d451a32c8cd.png

 

Under admin / repaters in the backend, things look a bit cryptic:

image.png.50f0696dbf18efceda1b902d66415354.png

Now, how do I find the mp4s that doesn't have a ratio?

I would imagine something like

wire('pages')->find("template=repeater_grid,mp4!='',ratio=''");

..but I can't get any meaningful results back. If I could only get all mp4's, that would already be a good start...

many thanks

J

Posted

Can you try:

wire('pages')->find("template=repeater_grid, mp4!='', ratio='', check_access=0");

find() won't find the repeater data pages since they would be restricted due to access control. 

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...