Initial commit
This commit is contained in:
23
kirby-baukasten-main/site/models/files.php
Normal file
23
kirby-baukasten-main/site/models/files.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
use Kirby\Cms\Page;
|
||||
use Kirby\Content\Field;
|
||||
|
||||
class FilesPage extends Page
|
||||
{
|
||||
public function metaDefaults()
|
||||
{
|
||||
return [
|
||||
'robotsIndex' => false
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Override the page title to be static
|
||||
* to the template name
|
||||
*/
|
||||
public function title(): Field
|
||||
{
|
||||
return new Field($this, 'title', t("page.{$this->intendedTemplate()->name()}.title"));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user