Increment() and translate: false

Is there a way to increment a field in a multi-language setup when the field has translate: false in the blueprint?

$page->increment('field');

Doesn’t work if the visitor is in any other language than the default one.

No, in that case you need to go via $page->update() and pass the language code as second param, see docs.

Or do a $site-visit() before calling increment().

Thanks again, @texnixe
Didn’t know the $page->update() has a language param :see_no_evil: That works.

I tried the visit method before. but this has overwritten the content of the default language with the content of the active language. Unfortunately I couldn’t reproduce it in a fresh starter kit. so it must be something in my code.