Christian Posted July 17, 2014 Posted July 17, 2014 Hi! Is there anyone here successfully get the data of repeater that has image fields on Service Pages Module?
diogo Posted July 17, 2014 Posted July 17, 2014 $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; }
Christian Posted July 17, 2014 Author Posted July 17, 2014 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?
laustdeleuran Posted July 15, 2016 Posted July 15, 2016 @Christian Did you ever solve this? Having the same issue. +1
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now