label = l::get('fields.title.label', 'Title'); $this->icon = 'font'; $this->required = true; } public function help() { if($this->page and !$this->page->isSite()) { if(!empty($this->help)) { $this->help = $this->i18n($this->help); $this->help .= '
'; } // build a readable version of the page slug $slug = ltrim($this->page->parent()->slug() . '/', '/') . $this->page->slug(); // TODO: move this to the css file $style = 'padding-left: .5rem; color: #777; border:none'; if($this->page->canChangeUrl()) { $this->help .= '→' . $slug . ''; } else { $this->help .= '→' . $slug . ''; } } return parent::help(); } }