this is my first post here and I am pleased to meet you.
I would like to work on data from a database using the panel and I cannot figure a direct way to do that. This topic has been on before, but never been associated to Kirby 3.
The Cookbook example works, but it behaves unexpectedly when you enter a single item URL with an id like /panel/pages/comments+100244, that was not part of the collection requested before (/panel/pages/comments) because that request was limited like so: db::select('comments')->limit(100).
The page “comments/100244” cannot be found
At first sight it seems that there’s something missing in /site/models/comment.php because it does not perform a db request. However, the panel uses the URL /panel/pages/comments+100244 (plural) url on the detail page.
So, how can you call a (virtual) Page from the database directly in the panel? What’s the general concept I do not comprehend, yet?
Not quite sure I understand your problem. Do you enter the URL manually in the address bar and then expect the virtual page to be there without prior querying it?