Jump to content

getLanguageValue equivalent for image description


Recommended Posts

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

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...