Example #1
0
 /**
  * @param string              $path
  * @param rex_article         $art
  * @param rex_yrewrite_domain $domain
  *
  * @return string
  */
 public function appendArticle($path, rex_article $art, rex_yrewrite_domain $domain)
 {
     if ($art->isStartArticle() && $domain->getMountId() != $art->getId()) {
         return $path . $this->suffix;
     }
     return $path . '/' . $this->normalize($art->getName(), $art->getClang()) . $this->suffix;
 }
Example #2
0
 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";
 }
 public function appendArticle($path, rex_article $art, rex_yrewrite_domain $domain)
 {
     return $path . '/' . $this->normalize($art->getName(), $art->getClang());
 }