<?php
$article_id = 3;
$clang_id = 2;
$art = new rex_article_content($article_id, $clang_id);
if (null !== $art) {
echo $art->getArticle();
}
?>
<?php
$category_id = 3;
$clang_id = 2;
$cat = rex_category::get($category_id, $clang_id);
?>
<?php
$ignore_offlines = false;
$children = $cat->getChildren($ignore_offlines);
?>
<?php
$ignore_offlines = false;
$children = $cat->getArticles($ignore_offlines);
?>
Ausgabe einer Unternavigation ausgehend von der obersten Ebene des aktuellen Standorts
<?php
//Subnavigation
$cat = rex_category::get($this->getValue("category_id"));
$subnav_content = '';
$subnav_title = '';
if (null !== $cat) {
$path = $cat->getPath();
if ('|' != $path) {
$a = explode('|', $path);
if (!empty($a[1])) {
$subnav_start_id = $a[1];
} else {
$subnav_start_id = 0;
}
$subnav = rex_navigation::factory();
$subnav->setClasses(array('sub1', 'sub2'));
$subnav_content = $subnav->get($subnav_start_id, 4 , true ,true);
$root_cat = rex_category::get($subnav_start_id);
if (null !== $root_cat) {
$subnav_title = $root_cat->getName();
}
}
}
if ('' != $subnav_content) {
echo '<h6>'. $subnav_title.'</h6>';
echo $subnav_content;
}
?>
<?php if (rex_article::getCurrentId() == rex_article::getSiteStartArticleId()):?>
Ich bin auf der Startseite
<?php endif;?>
<?php if (rex_article::getCurrentId() == rex_article::getNotfoundArticleId()):?>
Ich bin auf der Not-Found-Seite
<?php endif;?>
<title><? echo $this->getValue('name');?></title>
Im Addon Meta-Infos ein Textarea-Feld mit dem Namen art_description erstellen.
<meta name="description" content="<? echo str_replace("\n", '', $this->getValue('art_description'));?>"/>