Jump to content

Recommended Posts

Posted
$page->repeaterfield->imagefield

Make sure you are calling the field correctly.

If it's a single image field (limit is 1):

$page->repeaterfield->imagefield->url

and if it's a multiple image field  (limit is 0 or more than 1):

foreach($page->repeaterfield->imagefield as $img) {
    echo $img->url;
}
Posted

You mean with ryan's Service Pages Module?

Yup

$page->repeaterfield->imagefield

Make sure you are calling the field correctly.

If it's a single image field (limit is 1):

$page->repeaterfield->imagefield->url

and if it's a multiple image field  (limit is 0 or more than 1):

foreach($page->repeaterfield->imagefield as $img) {
    echo $img->url;
}

Hi! I think this is applicable on an API but what about the service pages. Is there any effiecient way to do this rather than finding content of an id?

  • 1 year later...

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