# Hook page.create:before, how to edit user input?

**URL:** <https://forum.getkirby.com/t/hook-page-create-before-how-to-edit-user-input/12656>\
**Category:** Questions\
**Tags:** v3\
**Created:** [February 3, 2019, 4:15pm UTC](https://forum.getkirby.com/t/hook-page-create-before-how-to-edit-user-input/12656 "2019-02-03T16:15:10Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![lukaskleinschmidt](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/lukaskleinschmidt/32/13388_2.png) [@lukaskleinschmidt](https://forum.getkirby.com/u/lukaskleinschmidt)\
**Post date:** [February 4, 2019, 1:57pm UTC](https://forum.getkirby.com/t/hook-page-create-before-how-to-edit-user-input/12656/5 "2019-02-04T13:57:03Z")

</div>

You could also overwrite the `create()` method of the **parent page** in a custom page model.

```php

class ParentPage extends Page
{
    /**
     * Creates and stores a new page
     *
     * @param array $props
     * @return Page
     */
    public static function create(array $props): Page
    {
        $props['slug'] = 'mynewslug';
        
        return parent::create($props);
    }
}

```

---

_[View the full topic](https://forum.getkirby.com/t/hook-page-create-before-how-to-edit-user-input/12656)._
