wollte mich mal an ReySeo probieren. instalation wor problemlos, jedoch musste ich feststellen das ab der zweiten Navigationsebene anscheinend die .css nicht aufgerufen wird.
REDAXO: 4.4.1
PHP: 5.4.12
hier mein Template, die Änderung für Seo sind hier jetzt nicht drin, da ich schnell wieder auf url_rewrite umgestellt habe.
Code: Alles auswählen
<?php
// EXPLODE PATH
$PATH = explode("|",$this->getValue("path").$this->getValue("article_id")."|");
$path1 = (isset ($PATH[1])) ? $PATH[1] : '';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> <head>
<link type="text/css" href="files/style.css" rel="stylesheet" media="screen">
<title><?php print $REX['SERVERNAME'].' | '.$this->getValue("name"); ?></title>
</head>
<body>
<div id="container">
<div id="banner"><TABLE>
<TR>
<TD width="15%"><IMG SRC="files/DMV DMSB.gif" width="150px" height="90px"></TD>
<TD width="15%"><IMG SRC="files/Quads.gif" width="143px" height="90px"</TD>
<TD width="40%"><center><IMG SRC="files/MSC.gif" width="271px" height="90px"></center></TD>
<TD width="15%"><IMG SRC="files/solo.gif" width="117px" height="90px"></TD>
<TD width="15%"><IMG SRC="files/SWG.gif" width="120px" height="90px"></TD>
</TR>
</TABLE>
</div>
<div id="top">
<div id="counter">
<?php
// Written by PKSR
// Website: http://www.pksr.de
// Contact: mail@pksr.de
if (!$REX['REDAXO']) {
define('TBL_VISITCOUNTER', 'pksr_besucher_counter');
$qry = "SHOW TABLES";
$sql = new sql();
$data = $sql->get_array($qry);
$table_exists = false;
foreach ($data as $entry){
if(array_search(TBL_VISITCOUNTER,$entry)) $table_exists = true;
}
if (!$table_exists){
$qry = "CREATE TABLE `". TBL_VISITCOUNTER ."` (
`besucher` varchar(10) NOT NULL,
PRIMARY KEY (`besucher`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;";
$sql = new sql();
$data = $sql->get_array($qry);
$qry = "INSERT INTO `". TBL_VISITCOUNTER ."` (`besucher`) VALUES ('1');";
$sql = new sql();
$data = $sql->get_array($qry);
}
$qry = 'SELECT * FROM '.TBL_VISITCOUNTER;
$sql = new sql();
$data = $sql->get_array($qry);
$aktuell_count = $data[0][besucher];
if (!isset($_COOKIE['besucher_counter'])) {
setcookie ('besucher_counter', 'false');
$aktuell_count++;
$qry = 'UPDATE `' . TBL_VISITCOUNTER . '` SET `besucher` = \'' . $aktuell_count . '\'';
$sql = new sql();
$sql->setQuery($qry);
}
echo 'Aktuell: ' . $aktuell_count . ' Besucher seit dem 15.01.2001';
}
?>
</div>
<div id ="breadcrumb">
<?php
$article= OOArticle::getArticleById($this->article_id);
$parent = $article->getParentTree();
foreach($parent as $cat):
$bread .= '<a href="'.$cat->getUrl().'" class="breadcrumb">';
$bread .= $cat->getName();
$bread .= '</a>';
$bread .= ' >> ';
endforeach;
$bread = substr($bread,0,-4);
print 'Sie befinden sich auf: ' . $bread;
?>
</div>
</div>
<div id="navigation">
<ul id="menu">
<?php
/*
Navi
*/
// 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 .= '<li class="nav1st" style="list-style-type:none;">';
foreach (OOCategory::getRootCategories() as $lev1) {
if ($lev1->isOnline(true)):
if ($lev1->getId() == $path1) {
$nav .= '<li><a class="current" href="'.$lev1->getUrl().'">'.$lev1->getName().'</a>';
}
// 2nd level - no active link
else {
$nav .= '<li><a href="'.$lev1->getUrl().'">'.$lev1->getName().'</a>';
}
// 1st level had categories? -> go on
$lev1Size = sizeof($lev1->getChildren());
if ($lev1->getId() == $path1) {
if ($lev1Size != "0") {
$nav .= '<ul class="nav2nd" style="list-style-type:none;">';
// START 2nd level categories
foreach ($lev1->getChildren() as $lev2):
if ($lev2->isOnline(true)) {
// 2nd level - active link
if ($lev2->getId() == $path2) {
$nav .= '<li><a class="current" href="'.$lev2->getUrl().'">'.$lev2->getName().'</a>';
}
// 2nd level - no active link
else {
$nav .= '<li><a href="'.$lev2->getUrl().'">'.$lev2->getName().'</a>';
}
// 2nd level had categories? -> go on
$lev2Size = sizeof($lev2->getChildren());
if ($lev2->getId() == $path2) {
if ($lev2Size != "0") {
$nav .= '<li class="nav3rd" style="list-style-type:none;">';
// START 3rd level categories
foreach ($lev2->getChildren() as $lev3):
if ($lev3->isOnline(true)) {
// 3rd level - active link
if ($lev3->getId() == $path3) {
$nav .= '<li><a class="current" href="'.$lev3->getUrl().'">'.$lev3->getName().'</a></li>';
}
// 3rd level - no active link
else {
$nav .= '<li><a href="'.$lev3->getUrl().'">'.$lev3->getName().'</a></li>';
}
}
endforeach;
// END 3rd level categories
$nav .= '</li style="list-style-type:none;">';
} // END by if ($lev2Size != "0"):
}
$nav .= '</li>';
}
endforeach;
// END 2nd level categories
$nav .= '</ul>';
} // END by if ($lev1Size != "0"):
}
$nav .= '</li>';
endif; // END by if ($lev1->isOnline())
}
$nav .= '</li>';
// END 1st level categories
print $nav;
?>
</ul>
<br>
<center>
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/de_DE/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div class="fb-like-box" data-href="http://www.facebook.com/mscaufenau" data-width="160" data-height="420" data-show-faces="true" data-stream="false" data-header="true"></div>
<div class="fb-like" data-href="http://www.facebook.com/mscaufenau" data-send="false" data-layout="box_count" data-width="70" data-show-faces="false" data-font="arial"></div>
</center>
</div>
<div id="content"><br><?php echo $this->getArticle(); ?><br></div>
<div id="footer">MSC-Aufenau.de | Realisiert mit <a href="http://www.redaxo.de">REDAXO CMS</a><a href="http://www.bot-trap.de/">
<img src="http://www.mx-hessencup.de/files/bot_trap_button.gif " title="Webseitenschutz" border="0">
</a></div>
</div>
</body>
</html>
Weiß da jemand rat?
Vielen Dank vorab,
Gruß Manuel