sterzycom/panel/app/fields/page/page.php

25 lines
471 B
PHP
Raw Normal View History

<?php
class PageField extends TextField {
public function __construct() {
$this->icon = 'chain';
$this->label = l::get('fields.page.label', 'Page');
$this->placeholder = l::get('fields.page.placeholder', 'path/to/page');
}
public function input() {
$input = parent::input();
$input->data(array(
'field' => 'autocomplete',
'url' => panel()->urls()->api() . '/autocomplete/uris'
));
return $input;
}
}