Jump to content

How to change fieldtype "select" value from api


regesh
 Share

Recommended Posts

I created fieldtype "select" for template (0:=Prepared, 1:=Done)

And need to make for list of pages with this template value for this fieldtype to "1" from.

There are to many pages to do it manualy. How to make it?

Link to comment
Share on other sites

Under Pages > Find in the backend you'll find a quite powerful search area. Just choose something like this "template=yourTemplateWithTheSelect, select=1". Also have a look at FieldtypeOptions. It's a more powerful core alternative to FieldtypeSelect with less overhead than having pages. 

Link to comment
Share on other sites

That's not what i'm talking about. I can't find out how to change value of custom field using API for selected page.

Something like so: $page->$fields->set('my_field','value');

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

×
×
  • Create New...