Jump to content

Recommended Posts

Posted

how do I return all the options of an option field?

I have an option field on the children pages and need to list them.

The API-documentation says as follows…

$items = $fieldtypeOptions->getOptions($field);

but it doesn't work. 

Also unclear if $fieldtypeOptions is to be used as is or would that be replaced with my field? It's not apparent if you're not a pro, the API documentation lacks examples or explanations as usual. 

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