Jump to content

Populate language values for custom fields


Recommended Posts

Hey there,

I need to populate and save the custom fields (e.g. "title") via API, which works perfectly fine for the default language.
However, I can't manage to populate other languages.

So far I tried:

$img->title427468 = 'Hello Wereld';

Nothing is saved. Other notations

Another approach:

$img->title = 'Hello Wereld';

This indeed saves "Hello Wereld" to the dutch custom title field, BUT however DELETES the content in the default title field.

The "setLanguageValue"-function is non-existent for the images/files, so it doesn't help.

 Can anyone help? 🙂
Thank you very much. ❤️ 

Link to comment
Share on other sites

  • 2 weeks 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...