Manage page slug status num with content from database process

I’m trying to manage content from database.
I’m using following methods and works great:

  • children() to list children
  • readContent() to get page data
  • writeContent() to save page data

But I didn’t know how to do the following:

  • When update page status
  • When update page slug
  • When update page num

For example: i tried to override changeSlug() method but I don’t think that’s the right way.
I think the process of managing content from the database is a bit limited, right?

Why not? After all, that is the method that is called when the user changes the slug in the Panel.

I was afraid to include the commit method :slight_smile:

Hm, but in this example we override the delete() method which calls the commit() method internally as well: https://getkirby.com/docs/guide/virtual-pages/content-from-database#create-a-model-for-the-comment-child-page