public function getTree($category_id) { // if not, let the structure as is, by providing a remembered id if ($category_id <= 0) { $category_id = rex_request::session('tree_category_id', 'int'); } else { rex_request::setSession('tree_category_id', $category_id); } return parent::getTree($category_id); }
protected function listItem(rex_article $article, $category_id) { $liAttr = ' class="list-group-item"'; $url = 'javascript:insertLink(\'redaxo://' . $article->getId() . '\',\'' . addslashes(htmlspecialchars($article->getName())) . '\');'; return rex_linkmap_tree_renderer::formatLi($article, $category_id, $this->context, $liAttr, ' href="' . $url . '"') . '</li>' . "\n"; }