Hab aus dem Downloadbereich ein Template runtergeladen und schon einiges angepasst.
Nun spiele ich mich schon mehrere Stunden mit der Navigation der 2. Ebene.
Diese ist in einem Div Container rechts unten.
Ich müsste die Container vertikal teilen und dann will ich die Navigation der 2. Ebene im rechten Teil haben... leider schaff ich das irgendwie nicht.
So sieht es mal aus:
Code: Alles auswählen
<?php
$suchartikelid = "";
error_reporting(E_ALL ^ E_NOTICE);
ini_set('arg_separator.output', '&');
ini_set ( "arg_separator.output", ";");
ini_set ( "url_rewriter.tags", "a=href");
$article = OOArticle::getArticleById($REX['START_ARTICLE_ID'], $REX['CUR_CLANG']);
$articleK = $article->getValue("_keywords");
$articleD = $article->getDescription();
if($this->getValue("description") != "") {
$meta_beschreibung = preg_replace('/<.*?>/', ' ', $this->getValue("description"));
$meta_beschreibung = htmlspecialchars($meta_beschreibung);
}
else {
$meta_beschreibung = preg_replace('/<.*?>/', ' ', $articleD);
$meta_beschreibung = htmlspecialchars($meta_beschreibung);
}
$meta_beschreibung = preg_replace('/<.*?>/', ' ', $meta_beschreibung);
if($this->getValue("keywords")!= "") {
$meta_suchbegriffe = htmlspecialchars($this->getValue("keywords"));
}
else {
$meta_suchbegriffe = htmlspecialchars($articleK);
}
$meta_beschreibung = preg_replace('/\s+/', ' ', $meta_beschreibung);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<title><?php print $this->getValue("name") . ' | ' . $REX['SERVERNAME']; ?></title>
<meta name="keywords" content="<?php print $meta_suchbegriffe; ?>, keywords" />
<meta name="description" content="<?php print $meta_beschreibung; ?> metas" />
<meta name="Content-Language" content="de-DE" />
<meta name="Author" content="<?php echo $REX['SERVERNAME']; ?>" />
<meta name="Publisher" content="<?php echo $REX['SERVERNAME']; ?>" />
<meta name="Copyright" content="<?php echo $REX['SERVERNAME']; ?>" />
<meta name="Revisit" content="After 5 days" />
<meta name="Robots" content="INDEX,FOLLOW" />
<link rel="stylesheet" type="text/css" href="files/css2.css" media="screen" title="css" />
</head>
<body>
<div id="upbg"></div>
<div id="outer">
<div id="header">
<div id="headercontent">
<h1><?php echo $REX['SERVERNAME']; ?></h1>
<h2>Individualismus kennt keine Grenzen</h2>
</div>
</div>
<?php
if ((int)$suchartikelid > 0){
?>
<form method="post" action="index.php" id="formular">
<div id="search">
<input type="hidden" name="article_id" value="<?php echo (int)$suchartikelid;?>" />
<input type="hidden" name="FORM[send]" value="1" />
<input type="text" class="text" maxlength="64" name="rexsearch" />
<input type="submit" class="submit" value="Suchen" />
</div>
</form>
<?php
}
?>
<div id="headerpic"></div>
<div id="menu">
<?php
// EXPLODE PATH
$PATH = explode("|",$this->getValue("path").$this->getValue("article_id")."|");
// GET CURRENTS
$path1 = $PATH[1];
$path2 = $PATH[2];
$path3 = $PATH[3];
/* START 1st level categories */
$nav .= '<ul>';
$nav2 = '';
foreach (OOCategory::getRootCategories() as $lev1) {
if ($lev1->isOnline(true)):
if ($lev1->getId() == $path1) {
$nav .= '<li><a class="active" href="'.$lev1->getUrl().'">'.$lev1->getName().'</a></li>';
$lev1Size = sizeof($lev1->getChildren());
if ($lev1Size != "0") {
$nav2 = '<ul>';
// START 2nd level categories
foreach ($lev1->getChildren() as $lev2):
if ($lev2->isOnline(true)) {
// 2nd level - active link
if ($lev2->getId() == $path2) {
$nav2 .= '<li class="active1"><a class="current" href="'.$lev2->getUrl().'">'.$lev2->getName().'</a>';
}
// 2nd level - no active link
else {
$nav2 .= '<li><a href="'.$lev2->getUrl().'">'.$lev2->getName().'</a>';
}
$nav2 .= '</li>';
}
endforeach;
// END 2nd level categories
$nav2 .= '</ul>';
}
} else { // if ($lev1->getId() == $path1) {
$nav .= '<li><a href="'.$lev1->getUrl().'">'.$lev1->getName().'</a></li>';
}
endif; // END by if ($lev1->isOnline())
}
$nav .= '</ul>';
// END 1st level categories
print $nav;
?>
</div>
<div id="menubottom"></div>
<div id="content">
<?php
if ($this->getArticle(1) != ''){
?>
<!-- Normal content: Stuff that's not going to be put in the left or right column. -->
<div id="normalcontent">
<?php
print $this->getArticle(1);
?>
</div>
<?php
}
?>
<div class="divider1"></div>
<!-- Primary content: Stuff that goes in the primary content column (by default, the left column) --> <div id="primarycontainer">
<div id="primarycontainer">
<div id="primarycontent">
<!-- Primary content area start -->
<?php
print $this->getArticle(0);
?>
<!-- Primary content area end -->
</div>
</div>
<?php
if ($nav2 != ''){
?>
<div id="secondarycontent">
<!-- Secondary content area start -->
<div class="box">
<h4>Navigation</h4>
<div class="contentarea">
<img src="files/css2/pic2.jpg" class="left" alt="Random foliage" />
<?php
print $nav2;
?>
</div>
</div>
<!-- Secondary content area end -->
</div>
<?php
}
?>
</div>
<div id="footer">
<div class="left">Copyright © 2008 <?php echo $REX['SERVERNAME']; ?>.</div>
<div class="right">Powered by <a href="http://www.redaxo.de">Redaxo</a> | <a href="http://www.domain.de/redaxo">Administration</a></div>
</div>
</div>
</body>
</html>
Jemand einen Rat?
Besten Dank!