ich habe folgendes Problem ich habe das folgende Template aus dem Downloadbereich in mein CMS eingebunden, "3 Ebenen / Liste nur mit a-Tags"
jetzt erscheint es aber nicht innerhalb der im "maintemplate" definierten Tabelle sondern am oberen Rand der kompletten Seite, wie weis ich dem template z:b. das Attribute navleftCol zu? oder besser gesagt was muß ich am Template abändern um es in meinem Maintemplate innerhalb der Tabelle zu positionieren?
die beiden Templates habe ich beigefügt,
---Maintemplate--
<?php
// Setting
////////////////////////////////////////////////////////////////////////////////
$navTemplateId = "2";
ini_set('arg_separator.output', '&');
ini_set ( "arg_separator.output", ";");
ini_set ( "url_rewriter.tags", "a=href");
// Code
////////////////////////////////////////////////////////////////////////////////
$article = OOArticle::getArticleById($REX['STARTARTIKEL_ID'], $REX['CUR_CLANG']);
$articleK = $article->getValue("_keywords");
$articleD = $article->getDescription();
include $REX['INCLUDE_PATH']."/generated/templates/$navTemplateId.template";
if($this->getValue("description") != "") {
$meta_beschreibung = htmlspecialchars($this->getValue("description"));
}
else {
$meta_beschreibung = htmlspecialchars($articleD);
}
if($this->getValue("keywords")!= "") {
$meta_suchbegriffe = htmlspecialchars($this->getValue("keywords"));
}
else {
$meta_suchbegriffe = htmlspecialchars($articleK);
}
?>
<!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="de" lang="de">
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<title><? print $REX['SERVERNAME'].' | '.$this->getValue("name"); ?></title>
<meta name="keywords" content="<?php print $meta_suchbegriffe; ?>" />
<meta name="description" content="<?php print $meta_beschreibung; ?>" />
<link rel="stylesheet" type="text/css" href="<? echo $REX['HTDOCS_PATH'] ?>files/main.css" />
</head>
<body>
<table width="750" height="110" cellpadding="0" cellspacing="0" border="0">
<tr><td width="750" height="80" class="headtop">
<!--HEADER TOP BEREICH GRAFIK//--><img src="./files/images/header/header_logo.gif">
</td></tr>
<tr><td width="750" height="10" class="head">
<!--HEADER ABGRENZUNG//-->
</td></tr>
</table>
<table width="750" height="20" cellpadding="0" cellspacing="0" border="0">
<tr>
<td width="750" height="20" class="headnav">
</td>
</tr>
</table>
<!-- end header -->
<!-- start #content -->
<table width="750" cellpadding="0" cellspacing="0" border="0">
<tr>
<td width="182" align="left" valign="top" class="navbg">
<!--TABLE NAVI-INHALT BEGIN//-->
<table width="182" border="0" cellpadding="0" cellspacing="0" class="navbg">
#####################
<?php print $navLeftCol; ?> <!--hier soll die nav erscheinen!! //-->
#####################
</table>
<!--TABLE NAVI-INHALT ENDE//-->
</td>
<td width="568" height="440" align="left" valign="top">
<div class="contentposition">
<!--TABLE INHALT BEGINN//-->
<?php
print $this->getArticle();
?>
<!--TABLE INHALT ENDE//-->
</div>
</td></tr>
</table>
<!-- Table Fußzeile-->
<table width="750" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="750" height="1" class="bottom"></td>
</tr>
<tr>
<td>
<div class="bottomposition">
©2006 by Pearl Consulting & Communication GmbH einem Unternehmen
der Pearl-Unternehmensgruppe
</div>
</td>
</tr>
</table>
</body>
</html>
----Ende---
---NavTemplate----
<?php
// EXPLODE PATH
$PATH = explode("|",$this->getValue("path").$this->getValue("article_id")."|");
// GET CURRENTS
$path1 = $PATH[1];
$path2 = $PATH[2];
$path3 = $PATH[3];
foreach (OOCategory::getRootCategories() as $lev1):
if($lev1->isOnline()):
echo '<tr><td class="linie"><div class="title"><a href="'.$lev1->getUrl().'" class="big">'.$lev1->getName().'</a></div></td></tr>';
if ($lev1->getId() == $path1) :
$lev1Size = sizeof($lev1->getChildren());
if($lev1Size != "0"):
foreach ($lev1->getChildren() as $lev2):
if ($lev2->isOnline()):
echo '<tr><td class="linie"><div class="arrow_p"><a onfocus="this.blur()" href="'.$lev2->getUrl().'" class="main">'.$lev2->getName().'</a></div></td></tr>';
endif;
// ANFANG EBENE 3
$lev2Size = sizeof($lev2->getChildren());
if($lev2Size != "0" && in_array($lev2->getId(), $path)):
foreach ($lev2->getChildren() as $lev3):
if ($lev3->isOnline()):
echo '<tr><td class="linie"><div class="arrow_p"><a onfocus="this.blur()" href="'.$lev3->getUrl().'" class="main">'.$lev3->getName().'</a></div></td></tr>';
endif;
endforeach;
endif;
// ENDE EBENE 3
endforeach;
endif;
endif;
endif;
endforeach;
?>
----Ende---
THX,
Jens
P.S. falls jemand interessiert ist, hier der Link zu dem CMS
http://www.kundencenter.ws
vorerst durch Benutzer und Passwort geschützt
Benutzer: paul
Passwort: fixundfoxi

