Christian Posted July 17, 2014 Share Posted July 17, 2014 Hi! Is there anyone here successfully get the data of repeater that has image fields on Service Pages Module? Link to comment Share on other sites More sharing options...
Nico Knoll Posted July 17, 2014 Share Posted July 17, 2014 You mean with ryan's Service Pages Module? Link to comment Share on other sites More sharing options...
diogo Posted July 17, 2014 Share 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; } Link to comment Share on other sites More sharing options...
Christian Posted July 17, 2014 Author Share 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? Link to comment Share on other sites More sharing options...
diogo Posted July 17, 2014 Share Posted July 17, 2014 Sorry, didn't read the title... Link to comment Share on other sites More sharing options...
laustdeleuran Posted July 15, 2016 Share Posted July 15, 2016 @Christian Did you ever solve this? Having the same issue. +1 Link to comment Share on other sites More sharing options...
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