Jump to content

$field->type->getOptions($field);


erikvanberkum
 Share

Recommended Posts

I am calling the following on a multilanguage field.

$all_options = $field->type->getOptions($field);

I am able to get the default language, but how do I access the other languages? I.e. my default is English and one of the other languages is Dutch. When I call this field, on a dutch page it shows up in default English.

Anyone able to point me in the right direction? Links below didnt help me.

https://processwire.com/docs/fields/select-options-fieldtype/

https://processwire.com/api/ref/fieldtype-options/get-options/

 

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...