Jump to content

Repater Matrix and Page field


Guy Verville
 Share

Recommended Posts

I am trying to implement a Repeater Matrix which contains a Page field (there are four fields, an image field, one text field and two page fields). The example given in the readme.txt is self-explanatory. However, this seems not to work with a page field. Say my page field is called "attached_ceramic_skus":

<?php
  foreach($page->test_matrix as $item) {
      echo "
        <h3>$item->headline</h3>  <=works
        <img... $item->image->url </>  <= works
		foreach ($item->attached_ceramic_skus as $skus)...  <= throws an error
     	";
    }    }
  }

When I debug this line, I see my image and text fields in the $item array, but not the page fields. But these fields are there and working when I enter data. I have understood how they are kept in the database. What is the method/hook to read this type of field?

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