ich habe noch ein Problem, bei dem mir sicherlich jemand helfen kann. Und zwar teste und spiele ich z.Z. am Contenido 4.4.4 herum - bin also ein absoluter Newbie.
Irgendwie bekomme ich es nicht hin eine 2. und 3. Navigation aufzubauen. Ich habe mir ein einfaches Template angelegt, in dem ich 3 Container für die Hauptnavigation integriert habe (Container 2, 3 und 4). In diesen drei Containern befinden sich drei Navigationsmodule (Nav_1, Nav_2, Nav_3), welche im Template auch richtig definiert sind. Soweit so gut...
Möchte ich nun die Navigationsstruktur testen, dann erscheint lediglich das erste Menü und die Überschrift des 2. Menüs (die statisch im Layout hinterlegt ist), danach ist Schluss. Nun habe ich mir den Quellcode des Previews angeschaut und festgestellt, dass nach der 2. Überschrift kein Quellcode mehr auftaucht. Ich habe schon alles probiert und komme zu keiner Lösung.
Ich poste einfach mal das Layout und den Preview-Quellcode hier hinein. Vielleicht kann ja jemand helfen.
Vielen Dank im voraus.
Christian
Layout:
Code: Alles auswählen
<!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" xml:lang="en" lang="en">
<head>
<title>Test</title>
<link rel="stylesheet" href="css/style.css" />
</head>
<body>
<table cellpadding="0" cellspacing="0" border="1" width="980px" align="center">
<!-- HEADER BEGIN -->
<tr>
<td width="980px" height="30px" colspan="2">
</td>
</tr>
<!-- HEADER END -->
<!-- SERVICENAVIGATION BEGIN -->
<tr>
<td width="980px" height="10px" colspan="2">
CMS_CONTAINER[1]
</td>
</tr>
<!-- SERVICENAVIGATION END -->
<!-- BODY BEGIN -->
<tr>
<!-- NAVIGATION BEGIN -->
<td width="200px">
Wissenswertes
CMS_CONTAINER[2]
<br />
Archive
CMS_CONTAINER[3]
<br />
Bücherecke
CMS_CONTAINER[4]
</td>
<!-- NAVIGATION END -->
<!-- MAINFRAME BEGIN -->
<td width="780px">
CMS_CONTAINER[8]
</td>
<!-- MAINFRAME END -->
</tr>
<!-- BODY END -->
<!-- FOOTER BEGIN -->
<tr>
<td width="980px" height="30px" colspan="2">
</td>
</tr>
<!-- FOOTER END -->
</table>
</body>
</html>
Preview:
Code: Alles auswählen
<!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" xml:lang="en" lang="en">
<head>
<title>Test</title>
<link rel="stylesheet" href="css/style.css" />
<script type="text/javascript">
/* Check if submenuItem is existing
and mark it */
if ( parent.frames["right_top"].document.getElementById("c_3") ) {
menuItem = parent.frames["right_top"].document.getElementById("c_3");
parent.frames["right_top"].sub.click(menuItem);
}
</script>
<script language="javascript">
// searches the classname in the td above or the tr above
function getCellClass(element) {
var el = document.getElementById(element);
var cell = el.offsetParent;
// if there is a classname in the td return the classname
if ( cell.className != '' ) {
return cell.className;
}
// set a flag in this td
if ( cell.id == '' ) {
cell.id = 'yes';
var flg = 'yes'
} else {
var flg = cell.id;
}
//else go to the tagname table above and search dowen for the tr tags
while (el.tagName != 'TABLE') {
el = el.offsetParent;
}
var elements = el.getElementsByTagName('TR');
//go thrue all tr tags
for (var row in elements) {
if (isNaN(elements[row])) {
var cells = elements[row].getElementsByTagName('TD');
for (var id in cells) {
if(isNaN(cells[id])){
// check if the flg(td cell) is in this tr if true return the calssname
if (cells[id].id==flg&&elements[row].className != '') {
return elements[row].className;
}
}
}
}
}
return false;
}
function setcontent(idart, act) {
var a = document.getElementsByTagName("*");
var str = '';
var aId = '';
var dcoElementCnt = 0;
// loop through all elements
for (var i=0; i < a.length; i++) {
aId = a[i].id;
aIdPrefix = aId.substr(0,4);
// search for the id which containes HTML
if (aIdPrefix == 'HTML') {
// check if its an 'contentEditable' Field
if (a[i].isContentEditable == true) {
// read out the content
var aContent = a[i].innerHTML;
// split the idname in data - datas 0 is the Fieldname 2 is the typeid
var data = aId.split("_");
if ( aContent == "" ) {
aContent = "!!";
} else {
// if there is an | in the text set a replacement chr because we use it later as isolator
while( aContent.search(/\|/) != -1 ) {
aContent = aContent.replace(/\|/,"§%%§");
}
}
// build the string which will be send
str += idart +'|'+ data[2] +'|'+ aContent +'|'+ data[0] +'||';
}
}
}
// set the string
document.forms.editcontent.data.value = str;
// set the action string
if ( act != 0 ) {
document.forms.editcontent.action = act;
}
// if there are 3 arguments, the className has to be seached
if(arguments.length > 2){
//search the class of the above element
var classname = getCellClass(arguments[2]);
if ( classname ) {
document.forms.editcontent.con_class.value = classname;
}
}
// submit the form
document.forms.editcontent.submit();
}
</script>
<script src="http://127.0.0.1/contenido/contenido/external/mozile/mozileLoader.js" type="text/javascript"></script></head>
<body>
<table cellpadding="0" cellspacing="0" border="1" width="980px" align="center">
<!-- HEADER BEGIN -->
<tr>
<td width="980px" height="30px" colspan="2">
</td>
</tr>
<!-- HEADER END -->
<!-- SERVICENAVIGATION BEGIN -->
<tr>
<td width="980px" height="10px" colspan="2">
<table cellpadding="0" cellspacing="0" border="0"><tr><td><img src="images/wuerfel.gif"></td><td height="21" class=".navigation" style="border: 0px; border-top:1px; border-color: #F7C473; border-style: dashed; background-color: #FFFFFF; padding-left:7px; padding-right:7px;">
<a class="klein" target="_self" href="front_content.php?idcat=31">Home</a></td><td height="21" class=".navigation" style="border: 0px; border-top:1px; border-color: #F7C473; border-style: dashed; background-color: #FFFFFF; padding-left:7px; padding-right:7px;">
<a class="klein" target="_self" href="front_content.php?idcat=32">Kontakt</a></td><td height="21" class=".navigation" style="border: 0px; border-top:1px; border-color: #F7C473; border-style: dashed; background-color: #FFFFFF; padding-left:7px; padding-right:7px;">
<a class="klein" target="_self" href="front_content.php?idcat=33">Impressum</a></td></tr></table>
</td>
</tr>
<!-- SERVICENAVIGATION END -->
<!-- BODY BEGIN -->
<tr>
<!-- NAVIGATION BEGIN -->
<td width="200px">
Wissenswertes
<table cellspacing="0" cellpadding="0" border="0"><!-- Generated by Contenido 4.4.4-->
<tr><td width="165" colspan="2" height="22" style="border: 0px; border-bottom:1px; border-color: #F7C473; border-style: dashed; background-color: #FFFFFF; padding-left:10px">
<a target="_self" href="front_content.php?idcat=45&contenido=14caf0662d70d52b225bd3a566b31ca5">Die Welt Krynn</a></td></tr>
<!-- Generated by Contenido 4.4.4-->
<tr><td width="165" colspan="2" height="22" style="border: 0px; border-bottom:1px; border-color: #F7C473; border-style: dashed; background-color: #FFFFFF; padding-left:10px">
<a target="_self" href="front_content.php?idcat=46&contenido=14caf0662d70d52b225bd3a566b31ca5">Krynn´s Pantheon</a></td></tr>
<!-- Generated by Contenido 4.4.4-->
<tr><td width="165" colspan="2" height="22" style="border: 0px; border-bottom:1px; border-color: #F7C473; border-style: dashed; background-color: #FFFFFF; padding-left:10px">
<a target="_self" href="front_content.php?idcat=51&contenido=14caf0662d70d52b225bd3a566b31ca5">Drachen von Krynn</a></td></tr>
<!-- Generated by Contenido 4.4.4-->
<tr><td width="165" colspan="2" height="22" style="border: 0px; border-bottom:1px; border-color: #F7C473; border-style: dashed; background-color: #FFFFFF; padding-left:10px">
<a target="_self" href="front_content.php?idcat=52&contenido=14caf0662d70d52b225bd3a566b31ca5">Rassen & Kulturen</a></td></tr>
<!-- Generated by Contenido 4.4.4-->
<tr><td width="165" colspan="2" height="22" style="border: 0px; border-bottom:1px; border-color: #F7C473; border-style: dashed; background-color: #FFFFFF; padding-left:10px">
<a target="_self" href="front_content.php?idcat=53&contenido=14caf0662d70d52b225bd3a566b31ca5">Persönlichkeiten</a></td></tr>
<!-- Generated by Contenido 4.4.4-->
<tr><td width="165" colspan="2" height="22" style="border: 0px; border-bottom:1px; border-color: #F7C473; border-style: dashed; background-color: #FFFFFF; padding-left:10px">
<a target="_self" href="front_content.php?idcat=54&contenido=14caf0662d70d52b225bd3a566b31ca5">Die wahren Schöpfer</a></td></tr>
<!-- Generated by Contenido 4.4.4-->
<tr><td width="165" colspan="2" height="22" style="border: 0px; border-bottom:1px; border-color: #F7C473; border-style: dashed; background-color: #FFFFFF; padding-left:10px">
<a target="_self" href="front_content.php?idcat=55&contenido=14caf0662d70d52b225bd3a566b31ca5">Gesammelte Schriften</a></td></tr>
</table> <br />
Archive