calling kirby()->models()
in field template causes page object class to change from Kirby\Panel\Models\Page
to Page
. Which would be ok since i use the var only within the plugin code. but I expected it to be the models class acctually MytemplatePage
.
But calling page model functions still fails. any other way to ‘attach’ the pagemodel class to a current page object?
edited:
i now have a proper model class object but i am gettin this error…
Undefined variable: _client
but there is no var client
in mine or all kirby/panel code, right? what am i missing?
edited: oh well. it was my var after all. so nevermind.