# Default status to listed

**URL:** <https://forum.getkirby.com/t/default-status-to-listed/14648>\
**Category:** Questions\
**Tags:** v3\
**Created:** [June 20, 2019, 10:39am UTC](https://forum.getkirby.com/t/default-status-to-listed/14648 "2019-06-20T10:39:44Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![roberto.sanval](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/roberto.sanval/32/6391_2.png) [@roberto.sanval](https://forum.getkirby.com/u/roberto.sanval)\
**Post date:** [June 20, 2019, 10:39am UTC](https://forum.getkirby.com/t/default-status-to-listed/14648/1 "2019-06-20T10:39:44Z")

</div>

Hello,

how can I set the default status of a new page or content to “listed” instead of “draft”?

I’m using Kirby 3.

Thanks

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [June 20, 2019, 10:44am UTC](https://forum.getkirby.com/t/default-status-to-listed/14648/2 "2019-06-20T10:44:50Z")

</div>

A new page is always created as a draft, there is no option to make it listed by default.

However, you could use a `page.create:after` or `page.update:after` [hook](https://getkirby.com/docs/reference/system/options/hooks) to auto-publish a page.

Note that a listed page is publicly accessible.

---

<div class="post-metadata">

**Author:** ![roberto.sanval](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/roberto.sanval/32/6391_2.png) [@roberto.sanval](https://forum.getkirby.com/u/roberto.sanval)\
**Post date:** [June 20, 2019, 10:59am UTC](https://forum.getkirby.com/t/default-status-to-listed/14648/3 "2019-06-20T10:59:35Z")

</div>

Thanks! I’ll do it with the hook.

---

<div class="post-metadata">

**Author:** ![Adrieng](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/adrieng/32/14454_2.png) [@Adrieng](https://forum.getkirby.com/u/Adrieng)\
**Post date:** [April 16, 2020, 5:04pm UTC](https://forum.getkirby.com/t/default-status-to-listed/14648/4 "2020-04-16T17:04:55Z")

</div>

Hello @texnixe, could you give details concerning that option ?

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [April 16, 2020, 5:39pm UTC](https://forum.getkirby.com/t/default-status-to-listed/14648/5 "2020-04-16T17:39:29Z")

</div>

Basically like this:

```auto
'hooks' => [
        'page.create:after' => function ($page) {
            $page->publish();
        }
]

```

This will give you an unlisted page. You can also use [`$page->changeStatus()`](https://getkirby.com/docs/reference/objects/page/change-status) to change the status to listed, unlisted (or draft).

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [December 15, 2023, 9:35pm UTC](https://forum.getkirby.com/t/default-status-to-listed/14648/6 "2023-12-15T21:35:32Z")

</div>

Since Kirby 4, you can set the default status of a page at page creation via the `create` option in your page blueprint, which also creates the page create dialog:

> **[Page blueprint](https://getkirby.com/docs/reference/panel/blueprints/page#page-creation-dialog)**
>
> Page blueprints are located in /site/blueprints/pages and control the Panel setup and form fields for pages.
