von carlos77 » 12. Aug 2011, 12:32
Der Code ist hier:
<?php
session_start();
?>
<!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">
<head>
<base href="<?php echo $REX['SERVER']; ?>" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo RexSEO::title(); ?></title>
<meta name="keywords" content="<?php echo RexSEO::keywords(); ?>" />
<meta name="description" content="<?php echo RexSEO::description(); ?>" />
<link href='http://fonts.googleapis.com/css?family=Yanone+Kaffeesatz&subset=latin' rel='stylesheet' type='text/css'>
<link href="files/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="wrapper">
<div id="site">
<div id="top_nav">
<?php
$articles = OOArticle::getRootArticles(true);
$root_nav = '<ul>';
foreach($articles as $article) {
if ($this->getValue('article_id') == $article->getId())
$root_nav .= '<li><a class="active" href="'.$article->getUrl().'">'.$article->getName().'</a></li>';
else
$root_nav .= '<li><a href="'.$article->getUrl().'">'.$article->getName().'</a></li>';
}
$root_nav .= '</ul>';
print $root_nav;
?>
</div>
<div id="header"> <a id="logo" href="<?php echo $REX['SERVER']; ?>" title="Zur Startseite"><span>Zur Startseite</span></a> REX_TEMPLATE[2] </div>
<div id="mainnav">
<?php $rexnav = rex_navigation::factory(); echo $rexnav->get(0,1,FALSE,TRUE); ?>
</div>
<div id="main_container">
<div id="content"> REX_ARTICLE[] </div>
<div class="clear"></div>
</div>
<div id="footer"> REX_ARTICLE[2] <a href="http://www.rexvideo.de">REXvideo</a> </div>
</div>
</div>
</body>
</html>
Scheint nun anscheinend zu funktionieren, nachdem ich den Code neu koppiert hatte und eingefügt hatte.
Wenn ich aber schon mal dabei bin:
Was soll die Zeile Spalten [ctypes] ID=1
muss das ausgefüllt werden und mit was?
und oben steht :
Template editieren [ID=5]
Heisst das, dass dies mein 5tes Tempate ist?