25 lines
471 B
PHP
25 lines
471 B
PHP
|
<?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;
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|