result
Develop / PlexusCrud / result
Since version 0.1 - 0.4
$this->result();
Description
SERP for search results and site feeds. Overwrite this, but try to use the default result.php template so that template designers do not need to design a custom result for any data type.Return
string markup of a search result of $this data object.Examples
function result()
{
$file = $this->tpl->locateFile('result.php', 'system');
$this->excerpt = '<strong>'.$this->kind.' von '.User::getById($this->person, 'name').'</strong><br />'.$this->tools->cutByWords(strip_tags($this->content), 16);
$this->tpl->cut($file, 'excerpt', array('result' => $this));
$this->noTime = TRUE;
$result = $this->tpl->cut($file, 'result', array('result' => $this));
$this->tpl->set($file, 'excerpt');
$this->tpl->set($file, 'result');
return $result;
}
