Jump to content

Repeater field ID


opalepatrick
 Share

Recommended Posts

You're checking if the id is the same as $i, but you're in no way looping through all the repeater fields, so this makes no sense in this state. If you try to get a specific repeater field you'd do it like this:

$pages->get(1024)->quotes->eq($i); //Get the $i's repeater field
Link to comment
Share on other sites

Strange. eq() should be available, as a repeater should simply return a PageArray, but you could also try get(). It may even be better than eq() as I'm not sure if the PageArray is indexed by position or by id. If that's not working try to check what type of object you're getting from your quotes repeater.

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

×
×
  • Create New...