markus_blue_tomato Posted May 6, 2019 Share Posted May 6, 2019 I would like to be able to fetch the image description for fields in a language different than the current logged in user. For field values that's easy // p is page, l is language, and f is field $p->getLanguageValue($l, $f); I'm looking for something like $page->image->getLanguageValue('en', 'description'); Link to comment Share on other sites More sharing options...
Zeka Posted May 6, 2019 Share Posted May 6, 2019 Hie @tiefenbacher_bluetomato You should be able to do it in this way $first_image = $page->images->first(); $first_image->description('de'); As pageimage class extends pagefile. 4 Link to comment Share on other sites More sharing options...
markus_blue_tomato Posted May 6, 2019 Author Share Posted May 6, 2019 thanks, works for me! 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