ich hab mir eine Subnavigation für Bildergallerien auf Artikelebene gebastelt.
Was auch ganz wunderbar funktioniert, außer bei 1und1...
Die kleinen Vorschaubilder werden in aus den Metafiles ausgelesen.
So soll es aussehen:
http://kurvenfrei.de/test/index.php?article_id=8
So sieht es leider aus:
http://abel-ing.de/index.php?article_id=8
Die Template dazu:
- Code: Alles auswählen
<?php
$cat = OOCategory::getCategoryById($this->getValue(category_id));
//$cats = $cat->getChildren();
$catName = $cat->getName();
print '<h3 class="art_nav_hl">Alle '.$catName.' Projekte</h3>';
print '<ul class="art_nav clear">';
$article = $cat->getArticles();
if (is_array($article)) {
foreach ($article as $var) {
$articleId = $var->getId();
$articleName = $var->getName();
$articleFile = $var->getFile();
$articlePPath = $REX["HTDOCS_PATH"]."files/".$var->getValue("file");
$activestate = '';
if ($articleId == REX_ARTICLE_ID){
$activestate = 'class="active"';
}
if ($articleFile != ""){
print '<li '.$activestate.' ><a href="'.rex_getUrl($articleId).'" title="' . $articleName . '"><img src="index.php?rex_img_type=referenz_nav&rex_img_file='.$articleFile.'" alt="" /></a></li>';
}
}
}
print '</ul>';
?>
Vielleicht kann mir da jemand helfen, ich weiss gerade nicht warum das nicht klappt.
Grüße
Jakob

