Verfasst: Di 24. Okt 2006, 14:29
navsecond_off, usw...
Das Diskussionsforum zum Open Source Content Management System
https://forum.contenido.org/
Code: Alles auswählen
Fatal error: Cannot redeclare catischildof() (previously declared in /homepages/17/d136421888/htdocs/contenido/cms/front_content.php(1028) : eval()'d code:76) in /homepages/17/d136421888/htdocs/contenido/cms/front_content.php(1028) : eval()'d code on line 424
Hallo ich habe obriges beispiel eingebaut aber ich kann die Styleangeben verändern wie ich will es tut sich nichts.nabu-bonn.de hat geschrieben:Hallo,
das ist eine Frage des Templates im Hintergrund.
Mein Template für die erste Ebene sieht wie folgt aus:Im Modul habe ich dann am Anfang noch den Table-Befehl eingefügt:<!-- BEGIN:BLOCK -->
<tr>
<td height=25 width=13 style="border:0px; background-color:#c00000; border-right-width=1px; border-top-width:1px; border-style:solid; border-color:#FFFFFF;"></TD>
<td style="border: 0px; background-color: #8C96A5; border-top-width:1px; border-style:solid; border-color:#FFFFFF; padding-left:5px" align=left valign=middle>
<a class="main" href="{HREF}">{NAME}</a>
</td>
</tr>
<!-- END:BLOCK -->
Am Ende des Moduls muß dann natürlich noch die Tabelle wieder beendet werden....
/* Start Output buffer */
ob_start();
echo '<table width=140 border=0 cellpadding=1 cellspacing=0>';
...
Dann hast du eine senkrechte Navigation.
Für die waagerechte Navi mußt du im Template die <TR>-Tags löschen. Die >Table>-Tags im Modul mußt du dann entsprechend um den <TR>-Tag erweitern.
Damit sollte das dann klappen, wie du es möchtest.
Gruß
Code: Alles auswählen
<!-- BEGIN:BLOCK -->
<a href="{HREF}"onMouseOut="MM_swapImgRestore()"onMouseOver="MM_swapImage('nav_{NAME}','','upload/bilder/navi/{NAME}_over.gif',1)"><img src="upload/bilder/navi/{NAME}.gif" alt="{NAME}"name="nav_{NAME}"align=left border="0"></a>
<!-- END:BLOCK -->
Code: Alles auswählen
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Contenido Demo-Seite</title>
<link href="css/style.css" rel="stylesheet" type="text/css">
<link href="css/style_print.css" rel="stylesheet" type="text/css" media="print">
<!--[if IE]>
<style>
#imagecolumn {
width:170px;
}
#logo {
margin-top:0;
}
#navipath {
padding-top:2px;
}
.balken {
background-position:0px 0px ;
}
#additionalnavi {
padding-top:2px;
}
</style>
<![endif]-->
<script language="javascript" type="text/javascript" src="js/jsApi.js"></script>
</head>
<body style="text-align:center;">
<div style="width:760px;margin:0px auto;text-align:left;">
<div id="outer">
<div id="innerwrap">
<div id="centrecontent">
<div id="navipath">
<container id="60" name="Navigationspfad" types="Navigation" mode="fixed" default="Navigationspfad">Navigationspfad</container>
</div>
<container id="10" name="Headline" types="Content" default="Headline (HTML)">Headline (HTML)</container>
<container id="12" name="Text" types="Content" default="">Content 1</container>
<container id="15" name="Text" types="Content" default="">Content 2</container>
<container id="22" name="Text" types="Content" default="">Content 3</container>
<container id="24" name="Text" types="Content" default="">Content 4</container>
<container id="26" name="Text" types="Content" default="">Content 5</container>
<container id="28" name="Text" types="Content" default="">Content 6</container>
<br/><br/>
<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td style="background-color:rgb(210,210,210);"><img src="images/grey.gif" width="1" height="1" border="0" alt="" title=""/></td></tr></table>
<div id="bottomnavi">
<container id="30" name="BottomNavigation" types="Navigation" mode="fixed" default="BottomNavigation">BottomNavigation</container>
</div>
</div>
<div id="left">
<container id="40" name="Hauptnavigation" types="Navigation" mode="fixed" default="Hauptnavigation">Hauptnavigation</container>
<container id="44" name="Suche" types="Navigation" default="">Suche</container>
<container id="48" name="Login" types="Navigation" default="">Login</container>
<container id="49" name="Newsletter" types="Navigation" default="">Newsletter</container> </div>
</div>
<div id="right"></div>
<div id="clearfooter"></div>
<div id="header">
<div id="additionalnavi"><container id="50" name="Hilfsnavigation" types="Navigation" mode="fixed" default="Hilfsnavigation">Hilfsnavigation</container></div>
<div id="logo">
<table width="780" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><a href="front_content.php" title="Zur Homepage"><img src="images/logo.gif" width="101" hspace="30" height="61" border="0" alt="Logo" title="Logo"/></a></td>
<td align="right"><img src="images/blank.gif" width="449" height="1" border="0"/></td>
<td align="right"><container id="80" name="Illustration" types="Content" default=""></container></td>
</tr>
<tr>
<td colspan="3" class="balken"><img src="images/blank.gif" border="0" width="780" height="5" alt=""/></td>
</tr>
</table>
</div>
</div>
<div id="imagecolumn">
<container id="70" name="Teaser_Rechts" types="Content" mode="optional">Teaser (Rechts)</container>
<container id="72" name="Teaser_Rechts" types="Content" mode="optional">Teaser (Rechts)</container>
<container id="74" name="Teaser_Rechts" types="Content" mode="optional">Teaser (Rechts)</container>
</div>
</div>
</div>
</body>
</html>
Code: Alles auswählen
<container id="40" name="Hauptnavigation" types="Navigation" mode="fixed" default="Hauptnavigation">Hauptnavigation</container>
Code: Alles auswählen
<container id="40" name="HauptNav1" types="Navigation" mode="fixed" default="HauptNav1">Navigation_Ebene_1</container>
...
<container id="41" name="HauptNav2" types="Navigation" mode="fixed" default="HauptNav2">Navigation_Ebene_2_x</container>
Code: Alles auswählen
<div id="left">
Code: Alles auswählen
-Navigation
-Punkt 1
-Seite 1
-Seite 2
-Seite 3
-Punkt 2
-Seite 1
-Seite 2
-Punkt 3
-Seite 1