Seite 1 von 1

BottomNavigation führt zu Fehler

Verfasst: Do 25. Dez 2008, 13:31
von jwulfes
Hallo zusammen!

Ich will gerade meine Homepage neu aufbauen.
dabei drehe ich mich im Augenblick an einer Kleinigkeit im Kreis.

In meinem Standdard Layout habe ich die BottomNavigation wie folgt eingebaut:
<container id="30" name="BottomNavigation" types="Navigation" mode="fixed" default="BottomNavigation">BottomNavigation</container>
Aber auf der Seite kommt folgendes heraus:
a href="front_content.php?idcat=7" title="Impressum">Impressum | Datenschutz |
Wobei der Punkt Datensicherheit verlingt ist, dass Impressum aber nicht!

Für alle, die sich das Teil anschauen wollen, hier der Link:
http://www.tower-hill.de/grex_luporum/c ... ontent.php

Danke für Eure Hilfe!

Gruß

Jörg

Verfasst: Do 25. Dez 2008, 13:59
von MichFress
die öffnende Klammer des a-Tags fehlt. Hast du vielleicht irgendetwas beim Copy&Paste falsch kopiert?

Verfasst: Do 25. Dez 2008, 15:01
von jwulfes
Das kann's nicht sein.
Ich poste mal den Quellcode von meinem Standdatd Layout:
<?php
?>
<!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="de" lang="de">
<head>
<!--
This website is brought to you by CONTENIDO
CONTENIDO is a free open source Content Management Framework created by four for business AG and licensed under GNU/GPL.
CONTENIDO is copyright 2001-2006 of four for business AG. Modules are copyright of their respective owners.
Information and contribution at http://www.contenido.org
-->
<title>Homepage der Familie Wulfes (Grex Luporum)</title>
<meta http-equiv="Content-Language" content="de"/>
<meta http-equiv="ImageToolbar" content="no"/>
<link rel="stylesheet" type="text/css" href="css/style.css"/>
<script language="JavaScript" type="text/javascript" src="js/jsApi.js"></script>
</head>
<body>
<div align="center">
<table width="850" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="30" height="30" background="upload/rim/dgcor_lo_.gif">&nbsp;</td>
<td colspan="3" valign="top" background="upload/rim/dgbord_o_.gif">&nbsp;</td>
<td width="30" background="upload/rim/dgcor_ro_.gif">&nbsp;</td>
</tr>
<tr>
<td width="30" height="30" background="upload/rim/dgbord_l_.gif">&nbsp;</td>
<td width="170" colspan="3" rowspan="2" valign="top" background="upload/rim/dgbgrnd.jpeg"><table width="780" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="200" height="80" background="upload/header/1a.jpg"><a href="http://www.tower-hill.de/grex_luporum/cms"><img src="upload/header/tower_hill_logo.gif" alt="Zur&uuml;ck zur Startseite" width="200" height="80" border="0" /></a></td>
<td width="410" height="80" background="upload/header/1b.jpg"></td>
<td width="170" height="80" background="upload/header/1c.jpg"></td>
</tr>
<tr>
<td colspan="3"><container id="50" name="Hilfsnavigation" types="Navigation" mode="fixed" default="Hilfsnavigation">Hilfsnavigation</container></td>
</tr>
<tr>
<td>&nbsp;</td>
<td><container id="60" name="Navigationspfad" types="Navigation" mode="fixed" default="Navigationspfad">Navigationspfad</container>
</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td width="200" valign="top"><container id="40" name="Hauptnavigation" types="Navigation" mode="fixed" default="Hauptnavigation">Hauptnavigation</container>
</td>
<td width="410" valign="top"><table width="410" height="450" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="10">&nbsp;</td>
<td width="400" valign="top"><container id="10" name="Headline" types="Content" default="Headline (HTML)">Headline (HTML) </container>
<container id="12" name="Text" types="Content" default="">Content 1</container>
<br />
<container id="15" name="Text" types="Content" default="">Content 2</container>
<br />
<container id="22" name="Text" types="Content" default="">Content 3</container></td>
</tr>
</table></td>
<td width="170" valign="top"><container id="71" name="News" types="Content" mode="optional"> News</container>
<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></td>
</tr>
<tr>
<td height="20" valign="top">&nbsp;</td>
<td height="20" valign="top">
<container id="30" name="BottomNavigation" types="Navigation" mode="fixed" default="BottomNavigation">BottomNavigation</container>
</td>
<td height="20" valign="top">&nbsp;</td>
</tr>
</table></td>
<td width="30" background="upload/rim/dgbord_r_.gif">&nbsp;</td>
</tr>
<tr>
<td height="30" background="upload/rim/dgbord_l_.gif">&nbsp;</td>
<td background="upload/rim/dgbord_r_.gif">&nbsp;</td>
</tr>
<tr>
<td width="30" height="30" background="upload/rim/dgcor_lu_.gif">&nbsp;</td>
<td height="30" colspan="3" valign="top" background="upload/rim/dgbord_u_.gif">&nbsp;</td>
<td width="30" background="upload/rim/dgcor_ru_.gif">&nbsp;</td>
</tr>
</table>
</div>
<
</body>
</html>
Und so sieht der Quellcode vom Modul Bootom Navigation aus:
<?php
/***********************************************
* Bottom Navigation Output
*
* Author : Willi Man
* Copyright : four for business AG
* Version : 1.0
* Created : 17-03-2005
* Modified : 05-08-2005, Andreas Lindner
************************************************/

#System properties in use:
#Type: navigation, Name: idcat_bottomnavi
#Contains idcat of tree to be displayed in bottom navigation


#Includes
cInclude("frontend", "includes/functions.navigation.php");
cInclude("classes", "class.template.php");

#Get settings
$cApiClient = new cApiClient($client);
$catStart = $cApiClient->getProperty('navigation', 'idcat_bottomnavi');

if (!is_object($oClient)) {
$oClient = new cApiClient($client);
}

#Get sub categories
$navigation = array ();
$navigation = createNavigationArray($catStart, $db);

#Output sub categories
$output = '';
if (count($navigation) > 0) {
foreach ($navigation as $key => $data) {
$output .= '<a href="'.$sess->url("front_content.php?idcat=".$data['idcat']).'" title="'.$data['name'].'">'.$data['name'].'</a> | ';
}
}
if (strlen($output) > 1) {
$output = substr($output, 1, strlen($output) - 2);
}

echo "<div id=\"footer\">".$output."</div>\n";
?>
Also irgendwo stimmt da was nicht!

Verfasst: Do 25. Dez 2008, 16:02
von MichFress
Ändere unten mal

Code: Alles auswählen

$output = substr($output, 1, strlen($output) - 2); 
in

Code: Alles auswählen

$output = substr($output, 0, strlen($output) - 2); 

Verfasst: Do 25. Dez 2008, 16:09
von jwulfes
Volltreffer - vielen Dank, dass war es!

Dir noch einen schönen Tag!