These are chat archives for getkirby/chat

30th
Jul 2015
aeyoa
@aeyoa
Jul 30 2015 13:14
Hello guys! Does anybody know how to change the value of a field programmatically? There is the way to create pages from code, but I can't find any methods for changing fields. Of course we can read all fields, delete page and create new page... But maybe someone knows better solutions?
aeyoa
@aeyoa
Jul 30 2015 13:53
Thanks a lot, @isaactopo! :clap:
isaac
@isaactopo
Jul 30 2015 13:54
glad if it’s what you want! :smile:
Don’t know if there’s a better way…
aeyoa
@aeyoa
Jul 30 2015 13:55
Ideally it would be one of the field methods, but it's ok for now
Nico Hoffmann
@distantnative
Jul 30 2015 14:01
are you looking for $page->update()?
aeyoa
@aeyoa
Jul 30 2015 14:03
Oh thanks @distantnative! That's exactly what I was looking for! How did I missed it from docs?!
isaac
@isaactopo
Jul 30 2015 15:05
Yeah, I missed it too :+1:
isaac
@isaactopo
Jul 30 2015 15:53
In Kirby always there’s a way to do the things simpler.