I want to have setting in panel how many inner pages to show on page. I am using field “pgn”. I imagine it should work like this, but it doesn’t. Is it possible to print value in paginate(____) as variable?
Yes, that is because when echoed, the field object which is returned from $page->pgn() is converted to a string (via the magical __toString() method). But if you don’t echo, you have a field object and you cannot pass that to the paginate() method.