$cat = OOCategory::getCategoryById(881);
$article = $cat->getArticles();
$cur_article = $this->getValue(article_id);
$theLinkURL = array();
$theIDs = array();
$theSlices = array();
$theShortHeads = array();
$theSublines = array();
$thePics = array();
if (is_array($article)) {
foreach ($article as $var) {
$articleId = $var->getId();
// start alle außer startpage
if (!$var->isStartpage()) {
array_push($theLinkURL,rex_getUrl($articleId));
array_push($theIDs,$articleId);
$this_slice = OOArticleSlice::getSlicesForArticleOfType($articleId, 36);
array_push($theSlices,$this_slice);
$this_short = $this_slice->getValue(16);
array_push($theShortHeads,$this_short);
$this_subline = $this_slice->getValue(5);
array_push($theSublines,$this_subline);
$this_pic = $this_slice->getMedia(1);
array_push($thePics,$this_pic);
}
// ende alle außer startpage
}
}
$key = array_search($_SERVER["REQUEST_URI"], $theLinkURL);
$key2 = array_search($cur_article, $theIDs);
if ($REX['REDAXO']) {
// echo 'Vollständige Ausgabe im Backend ausgeblendet - angezeigt werden:
';
// print_r($theIDs);
// echo $key2;
if ($theIDs[$key2+1] != "") {
print '

';
print '
'.$theShortHeads[$key2+1].' '.$theSublines[$key2+1].'
';
}
if ($theIDs[$key2+2] != "") {
print '

';
print '
'.$theShortHeads[$key2+2].' '.$theSublines[$key2+2].'
';
}
if ($theIDs[$key2+3] != "") {
print '

';
print '
'.$theShortHeads[$key2+3].' '.$theSublines[$key2+3].'
';
}
if ($theIDs[$key2+4] != "") {
print '

';
print '
'.$theShortHeads[$key2+4].' '.$theSublines[$key2+4].'
';
}
if ($theIDs[$key2+5] != "") {
print '

';
print '
'.$theShortHeads[$key2+5].' '.$theSublines[$key2+5].'
';
}
if ($theIDs[$key2+6] != "") {
print '

';
print '
'.$theShortHeads[$key2+6].' '.$theSublines[$key2+6].'
';
}
} else {
if ($theLinkURL[$key+1] != "") {
print '
';
}
if ($theLinkURL[$key+2] != "") {
print '
';
}
if ($theLinkURL[$key+3] != "") {
print '
';
}
if ($theLinkURL[$key+4] != "") {
print '
';
}
if ($theLinkURL[$key+5] != "") {
print '
';
}
if ($theLinkURL[$key+6] != "") {
print '
';
}
}
// print_r($theSlices);
?>