You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.0 KiB
52 lines
1.0 KiB
<?php
|
|
|
|
use Kirby\Cms\Site;
|
|
use Kirby\Form\Form;
|
|
|
|
/**
|
|
* Site
|
|
*/
|
|
return [
|
|
'default' => fn () => $this->site(),
|
|
'fields' => [
|
|
'blueprint' => fn (Site $site) => $site->blueprint(),
|
|
'children' => fn (Site $site) => $site->children(),
|
|
'content' => fn (Site $site) => Form::for($site)->values(),
|
|
'drafts' => fn (Site $site) => $site->drafts(),
|
|
'files' => fn (Site $site) => $site->files()->sorted(),
|
|
'options' => fn (Site $site) => $site->permissions()->toArray(),
|
|
'previewUrl' => fn (Site $site) => $site->previewUrl(),
|
|
'title' => fn (Site $site) => $site->title()->value(),
|
|
'url' => fn (Site $site) => $site->url(),
|
|
],
|
|
'type' => Site::class,
|
|
'views' => [
|
|
'compact' => [
|
|
'title',
|
|
'url'
|
|
],
|
|
'default' => [
|
|
'content',
|
|
'options',
|
|
'title',
|
|
'url'
|
|
],
|
|
'panel' => [
|
|
'title',
|
|
'blueprint',
|
|
'content',
|
|
'options',
|
|
'previewUrl',
|
|
'url'
|
|
],
|
|
'selector' => [
|
|
'title',
|
|
'children' => [
|
|
'id',
|
|
'title',
|
|
'panelIcon',
|
|
'hasChildren'
|
|
],
|
|
]
|
|
]
|
|
];
|
|
|